didChangeAppLifecycleState method

  1. @override
  2. @mustCallSuper
void didChangeAppLifecycleState(
  1. AppLifecycleState lifecycleState
)
inherited

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

Implementation

@override
@mustCallSuper
void didChangeAppLifecycleState(AppLifecycleState lifecycleState) {
  super.didChangeAppLifecycleState(lifecycleState);
  //
  forEachState((state) {
    state.didChangeAppLifecycleState(lifecycleState);
  }, reversed: true, remove: this);
}