handleAppLifecycleStateChanged method
- AppLifecycleState state
override
Called when the application lifecycle state changes.
Notifies all the observers using WidgetsBindingObserver.didChangeAppLifecycleState.
This method exposes notifications from SystemChannels.lifecycle.
Implementation
@override
void handleAppLifecycleStateChanged(AppLifecycleState state) {
super.handleAppLifecycleStateChanged(state);
for (final WidgetsBindingObserver observer in List<WidgetsBindingObserver>.of(_observers)) {
observer.didChangeAppLifecycleState(state);
}
}