RepositoryStateEmpty<Data> class
A RepositoryState that indicates that the repository is loading data.
- Inheritance
-
- Object
- RepositoryState<
Data> - RepositoryStateEmpty
Constructors
- RepositoryStateEmpty({bool isLoading = false})
-
A RepositoryState that indicates that the repository is loading data.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoading → bool
-
Whether the repository is loading data.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited
Methods
-
map<
Result> ({required Result ready(RepositoryStateReady< Data> state), Result? empty(RepositoryStateEmpty<Data> state)?}) → Result? -
Returns the value of the current state of the repository.
It can be either RepositoryStateEmpty or RepositoryStateReady.
It throws an Exception if the state is not handled.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited