LifecycleRegistry class

一个Lifecycle的实现

应该由具有生命周期的类使用,即被LifecycleOwner的子类所拥有, 用于管理复数个LifecycleObserver

Inheritance

Constructors

LifecycleRegistry()

Properties

currentState LifecycleState
当前生命周期状态
read-only, override
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
添加生命周期观察者 [...]
override
handleLifecycleEvent(LifecycleEvent event) → void
处理生命周期事件 [...]
removeObserver(LifecycleObserver observer) → void
移除生命周期观察者 [...]
override
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