Lifecycle class abstract
lifecycle的实现
- Implemented types
- Implementers
- Available extensions
Constructors
Properties
- currentLifecycleState → LifecycleState
-
当前状态
no setterinherited
- currentState → LifecycleState
-
Available on Lifecycle, provided by the LifecycleSupprot extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- owner → LifecycleOwner
-
管理者
no setter
- parent → Lifecycle?
-
上一级提供者
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addLifecycleObserver(
LifecycleObserver observer, {LifecycleState? startWith, bool fullCycle = true}) → void -
添加一个观测者
inherited
-
addObserver(
LifecycleObserver observer, [LifecycleState? startWith]) → void -
Available on Lifecycle, provided by the LifecycleSupprot extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeLifecycleObserver(
LifecycleObserver observer, {LifecycleState? willEnd, bool? fullCycle}) → void -
inherited
-
removeObserver(
LifecycleObserver observer, [LifecycleState? endWith]) → void -
Available on Lifecycle, provided by the LifecycleSupprot extension
-
toLifecycle(
) → Lifecycle -
Available on ILifecycle, provided by the LifecycleConvertExt extension
-
toLifecycleRegistry(
) → ILifecycleRegistry -
Available on ILifecycle, provided by the LifecycleConvertExt extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
maybeOf(
BuildContext context, {bool listen = true}) → Lifecycle? - 获取 lifecycle
-
of(
BuildContext context, {bool listen = true}) → Lifecycle - 获取 lifecycle