MutableRepositoryData<T> class

Repository data backed by a MutableLiveData source.

Provides both read and write access to repository data. Use this when you need to modify repository data.

Example:

final repo = MutableRepositoryData(value: 0);
print(repo.value); // 0
repo.value = 42;
print(repo.value); // 42
Inheritance

Constructors

MutableRepositoryData({T? value, MutableLiveData<T>? source, bool changeDetector(T, T)?})
Creates a MutableRepositoryData.

Properties

hashCode → int
The hash code for this object.
no setterinherited
live → LiveData<T>
Returns a LiveData that observes this repository data.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → MutableLiveData<T>
final
value ↔ T
The current value.
getter/setter pairinherited-getter

Methods

dispose() → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
transform<S>(S transform(LiveData<T>)) → LiveData<S>
Transforms the data into a different type.
inherited

Operators

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