onStateChange method

void onStateChange(
  1. AppLifecycleState state
)

Implementation

void onStateChange(AppLifecycleState state) {
  if (kDebugMode) {
    print("on state change: $state");
  }
}