LifecycleObserverDispatcher class

观察者分发器 观察者自身生命周期分发类:包括常规分发 和 延迟分发 延迟分发:如果 观察者 在 widget 初始化时注册,那么两者生命周期一直保持同步;如果 观察者 在 widget 生周期中后期才注册,则会丢失已经过去的前期生命周期回调,需要补上

Properties

hashCode int
The hash code for this object.
no setterinherited
observer LifecycleObserver
观察者
final
owner LifecycleOwner
生命周期感知对象
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispatchState(LifecycleState state) → void
常规分发:观察者生命周期事件分发
dispatchStateIfNeed(LifecycleState state) → void
延迟分发:如果 观察者 在 widget 初始化时注册,那么两者生命周期一直保持同步;如果 观察者 在 widget 生周期中后期才注册,则会丢失已经过去的前期生命周期回调,需要补上 延迟/补充的生命周期分发 如果用户 #addObserver 时机较晚,会导致前期对应的生命周期丢失,这里延迟分发
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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