INNER CODE UNIT · Dart

Controller

ShadyBoukhary/flutter_clean_architecture · lib/src/controller.dart:77

abstract class Controller
    with WidgetsBindingObserver, RouteAware, ChangeNotifier {
  late bool _isMounted;
  late Logger logger;
  late GlobalKey<State<StatefulWidget>> _globalKey;

  Controller() {
    logger = Logger('$runtimeType');
    _isMounted = true;
    initListeners();
  }

  @override
  void didChangeAppLifecycleState(AppLifecycleState state) {
    if (_isMounted) {
      switch (state) {
        case AppLifecycleState.inactive:
          onInActive();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…