LifecycleObserver class abstract
生命周期观察者 通过 onLifecycleChanged 监听 生命周期变化 任何对象可以通过实现此类,并将自身添加到被观察者 LifecycleObservable,实现监听生命周期变化
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onLifecycleChanged(
LifecycleOwner owner, LifecycleState state) → void - widget 状态改变回调
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited