LifecycleObservableImpl class

生命周期可观察对象(被观察者)实现类 管理观察者对象 添加观察者:添加需要生命周期感知的对象 移除观察者:移除不再需要通知的对象

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addObserver(LifecycleObserver observer) → void
添加观察者的时期由开发者控制,有可能不能完整触发整个生命周期,此处需要特殊处理 添加完成之后需要补充前面已经过去的生命周期(用户在哪里添加观察者无法得知)
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify(LifecycleState state) → void
通知观察者
override
removeObserver(LifecycleObserver observer) → void
移除观察者
override
toString() String
A string representation of this object.
inherited

Operators

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