didChangeAppLifecycleState method

void didChangeAppLifecycleState(
  1. AppLifecycleState state
)

Called when the system puts the app in the background or returns the app to the foreground.

Implementation

void didChangeAppLifecycleState(AppLifecycleState state) {
  /// Passing these possible values:
  /// AppLifecycleState.paused (may enter the suspending state at any time)
  /// AppLifecycleState.resumed
  /// AppLifecycleState.inactive (may be paused at any time)
  /// AppLifecycleState.suspending (Android only)
}