LiveData<T> class
Live Data Structure
- Implemented types
- Implementers
- Available extensions
Constructors
-
LiveData(T initValue, {String? name, bool verifyDataChange = false, StreamController<
T> ? streamController, LifeCycleOwner? owner, Logger? logger}) -
LiveData.broadcast(T initValue, {String? name, bool verifyDataChange = false, StreamController<
T> ? streamController, LifeCycleOwner? observeOn, Logger? logger}) -
factory
-
LiveData.single(T initValue, {String? name, bool verifyDataChange = false, StreamController<
T> ? streamController, LifeCycleOwner? observeOn, Logger? logger}) -
factory
-
LiveData.stream(T initValue, Stream<
T> stream, {String? name, bool verifyDataChange = false, StreamController<T> ? streamController, LifeCycleOwner? observeOn, Logger? logger}) -
factory
Properties
-
apples
↔ List<
void Function(LiveData< T> liveData)> -
getter/setter pair
- attachedItems ↔ Map
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialValue → T
-
final
-
just
→ _Just<
T> -
no setter
- lifeCycleObserver → LifeCycleOwner?
-
no setter
- logger ↔ Logger
-
getter/setter pair
- name → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
T> ? -
no setter
-
streamController
↔ StreamController<
T> -
getter/setter pair
- value ↔ T
-
getter/setter pair
- verifyDataChange → bool
-
final
Methods
-
apply(
void apply(LiveData< T> liveData)) → LiveData<T> -
applyOnce(
void apply(LiveData< T> liveData)) → LiveData<T> -
close(
) → void -
override
-
detachBy(
C detacher(LiveData< P> lv)) → LiveData<C> ? -
Available on LiveData<
P> , provided by the DetachLiveData extension -
listen(
void onData(T value), {void onDone()?, Function? onError, bool? cancelOnError}) → StreamSubscription< T> ? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
owner(
LifeCycleOwner lifeCycleOwner) → LiveData< T> -
patch(
void setter(T)) → LiveData< T> -
then<
T> (C runner(LiveData< P> value)) → C -
Available on LiveData<
P> , provided by the DetachLiveData extension -
tick(
{bool? verifyDataChange}) → LiveData< T> -
toString(
) → String -
A string representation of this object.
override
-
transform(
T setter(T)) → LiveData< T>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited