LifeCycleManager class Null safety

This Widgets tracks both the app lifecycle and the screen visibility onStart will be called only when the Widget is displayed for the first time (= during the initState phase) onResume will be called once the app is reopened (eg: the app is minimized and brought back to front) onPause will be called once the app is minimized onVisible will be called if this part of the tree is visible onInvisible will be called if this part of the tree is invisible

Constructors

LifeCycleManager({required dynamic onResume(), required dynamic onPause(), required dynamic child, dynamic onStart()?, dynamic onVisible()?, dynamic onInvisible()?, dynamic key})
const

Properties

child → dynamic
final
hashCode int
The hash code for this object. [...]
read-only, inherited
onInvisible → (dynamic Function?()?)
final
onPause → dynamic Function()
final
onResume → dynamic Function()
final
onStart → (dynamic Function?()?)
final
onVisible → (dynamic Function?()?)
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createState() LifeCycleManagerState
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited