lifecycle library Null safety

Classes

ChildPageLifecycleWrapper
Lifecycle wrapper for children of PageView and TabBarView. See ParentPageLifecycleWrapper.
LifecycleAware
An interface for objects that are aware of their current Route. [...]
LifecycleObserver
LifecycleWrapper
Lifecycle wrapper for Widget. If you are using a StatefulWidget, consider mixin it with LifecycleMixin.
ParentPageLifecycleWrapper
Lifecycle wrapper for PageView / TabBarView.

Mixins

LifecycleMixin<T extends StatefulWidget>

Constants

lifecycle_events_all → const Set<LifecycleEvent>
const <LifecycleEvent>{LifecycleEvent.push, LifecycleEvent.visible, LifecycleEvent.active, LifecycleEvent.inactive, LifecycleEvent.invisible, LifecycleEvent.pop}
lifecycle_events_only_push_pop → const Set<LifecycleEvent>
const <LifecycleEvent>{LifecycleEvent.push, LifecycleEvent.pop}
lifecycle_events_without_push → const Set<LifecycleEvent>
const <LifecycleEvent>{LifecycleEvent.visible, LifecycleEvent.active, LifecycleEvent.inactive, LifecycleEvent.invisible, LifecycleEvent.pop}
lifecycle_events_without_push_pop → const Set<LifecycleEvent>
const <LifecycleEvent>{LifecycleEvent.visible, LifecycleEvent.active, LifecycleEvent.inactive, LifecycleEvent.invisible}

Properties

defaultLifecycleObserver LifecycleObserver
An observer can only be used by one Navigator (include MaterialApp). If you have your own Navigator, please use a new instance of LifecycleObserver.
final

Enums

LifecycleEvent

Typedefs

OnLifecycleEvent = void Function(LifecycleEvent event)