ObserverWithState class
用来包装 LifecycleObserver 使其具有自己的状态,通过自己的状态和宿主的状态比对来决定是否响应生命周期事件
Constructors
- ObserverWithState.new(LifecycleState state, LifecycleObserver lifecycleObserver)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- lifecycleObserver ↔ LifecycleObserver
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state ↔ LifecycleState
-
getter/setter pair
Methods
-
dispatchEvent(
BaseViewState< StatefulWidget, ViewModel> owner, LifecycleEvent event) → void -
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