lifecycle property
Stream<LifecycleState>
get
lifecycle
A broadcast stream of LifecycleState events.
An event is emitted on this stream as the state machine moves through its lifecycle. For example, LifecycleState.started will be emitted when start is called, and the returned future completes.
Implementation
Stream<LifecycleState> get lifecycle => _lifecycle.states;