LiveRepositoryData<T> class

Repository data backed by an immutable LiveData source.

Wraps an existing LiveData to provide repository-style access patterns. Use this when you have read-only data from a repository.

Example:

final liveData = MutableLiveData(42);
final repo = LiveRepositoryData(liveData);
print(repo.value); // 42
final observed = repo.live; // Get observable LiveData
Inheritance

Constructors

LiveRepositoryData(LiveData<T> source)
Creates a LiveRepositoryData wrapping the given source.

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 → LiveData<T>
final
value → T
The current value.
no setterinherited

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