Is it possible to manually control the flutter AppLifeCycleState?

373 Views Asked by At

Is it possible to manually control the flutter AppLifeCycleState?

  @override
  void didChangeAppLifecycleState(AppLifecycleState state) {
    switch (state) {
      case AppLifecycleState.resumed:
        debugPrint("Colorun - resumed");
        break;
      case AppLifecycleState.inactive:
        debugPrint("Colorun - inactive");
        break;
      case AppLifecycleState.paused:
        debugPrint("Colorun - paused");
        break;
      case AppLifecycleState.detached:
        debugPrint("Colorun - detached");
        break;
    }
  }

Is it possible to change the flutter app from running state to paused state?

0

There are 0 best solutions below