ResourceLoading<T> class
Creates an ResourceState in loading state.
Prefer always using this constructor with the const
keyword.
- Implemented types
- Available Extensions
- Annotations
-
- @immutable
Constructors
- ResourceLoading()
-
Creates an ResourceState in loading state.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
R> ({required R ready(ResourceReady< T> ready), required R error(ResourceError<T> error), required R loading(ResourceLoading<T> loading)}) → R -
private mapper, so that classes inheriting Resource can specify their own
map
method with different parameters.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override