onStateChanged method

  1. @override
void onStateChanged(
  1. AppLifecycleState state
)
override

Logs the lifecycle state change.

Implementation

@override
/// Logs the lifecycle state change.
void onStateChanged(AppLifecycleState state) {
  log('App lifecycle: $state');
}