ObserverWrapper<T> class abstract

观察者包装类,具体实现 _AlwaysActiveObserver 和 _LifecycleBoundObserver

Constructors

ObserverWrapper(LiveData<T> liveData, Observer<T> observer)

Properties

active ↔ bool
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
lastVersion ↔ int
getter/setter pair
liveData → LiveData<T>
final
observer → Observer<T>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

activeStateChanged(bool newActive) → void
detachObserver() → void
isBoundTo(BaseViewState<StatefulWidget, ViewModel> owner) → bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldBeActive() → bool
toString() → String
A string representation of this object.
inherited

Operators

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