Lifecycle class

生命周期组件,具有UI生命周期事件和状态

通过注入具有生命周期的UI组件来感知对应的生命周期事件, 可以通过添加监听器来获取生命周期事件

Implementers

Constructors

Lifecycle()

Properties

currentState LifecycleState
当前生命周期状态
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addObserver(LifecycleObserver observer) → void
添加生命周期观察者 [...]
removeObserver(LifecycleObserver observer) → void
移除生命周期观察者 [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited