appLifecycleSignal top-level property

FlutterSignal<AppLifecycleState> appLifecycleSignal
final

WidgetsBinding signal that tracks the current AppLifecycleState

initWidgetsBindingSignals is required to be called in the main method

Implementation

final appLifecycleSignal = signal<AppLifecycleState>(AppLifecycleState.resumed);