MutableLiveData<T> class

LiveData公开子类

客户端应该直接使用或继承此类来使用LiveData功能

Inheritance

Constructors

MutableLiveData()

Properties

value ↔ T
当前的数据
read / write, inherited-getter
foreverStream → Stream<T>
获取永续的数据流对象 [...]
read-only, inherited
hasActiveObserves → bool
是否存在活动的观察者,活动观察者指观察者生命周期处于LifecycleState.resumed并且Stream存在至少一个监听者
read-only, inherited
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
version → int
当前数据版本
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
of(LifecycleOwner owner) → Stream<T>
获取一个数据流对象用于监听LiveData数据变化 [...]
inherited
onActive() → void
当活动观察者从0变为1时调用 [...]
@protected, inherited
onInactive() → void
当活动观察者从1变为0时调用 [...]
@protected, inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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