LifecycleOwner class

生命周期持有者

Constructors

LifecycleOwner()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
lifecycle Lifecycle
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addObserver(LifecycleBoundObserver observer) → void
添加观察者
callObservers() → void
通知观察者状态改变
destroy() → void
结束生命周期
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
removeObserver(LifecycleBoundObserver observer) → void
移除观察者
start() → void
初始化生命周期
toString() String
A string representation of this object. [...]
inherited

Operators

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