LifecycleState enum

LifecycleOwner的生命周期状态

Constants

created → const LifecycleState

已创建状态

LifecycleOwner执行过初始化事件LifecycleEvent.onCreate, 但是未执行LifecycleEvent.onResume或者后续执行了LifecycleEvent.onPause时组件会处于该状态

const LifecycleState(2)
destroyed → const LifecycleState

已销毁状态

const LifecycleState(0)
initialized → const LifecycleState

初始状态

const LifecycleState(1)
resumed → const LifecycleState

已显示状态

LifecycleOwner执行过LifecycleEvent.onResume, 但未执行LifecycleEvent.onPause的状态

const LifecycleState(3)
values → const List<LifecycleState>

A constant List of the values in this enum, in order of their declaration.

const List<LifecycleState>

Properties

index → int

The integer index of this enum.

final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toString() → String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited