LifecycleRegistry class
Constructors
-
LifecycleRegistry.new(BaseViewState<
StatefulWidget, ViewModel> lifecycleOwner)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
lifecycleOwner
→ BaseViewState<
StatefulWidget, ViewModel> -
final
-
observerMap
↔ LinkedHashMap<
LifecycleObserver, ObserverWithState> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addObserver(
LifecycleObserver observer) → void -
override
-
calculateTargetState(
LifecycleObserver observer) → LifecycleState -
getCurrentState(
) → LifecycleState -
override
-
getEldestStateObserver(
) → ObserverWithState? -
getNewestStateObserver(
) → ObserverWithState? -
isSynced(
) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeObserver(
LifecycleObserver observer) → void -
override
-
setCurrentState(
LifecycleState next) → void -
sync(
) → void - 同步状态
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited