LoaderState<Content extends Object> class
abstract
View state that exposed to widget builder
- Annotations
Constructors
-
LoaderState([void updates(LoaderStateBuilder<
Content> )]) -
Construct a LoaderState and apply
updates
immediatelyfactory - LoaderState.initial({Content? content})
-
Initial view state with
content
, isLoading is true and error is nullfactory
Properties
- content → Content?
-
Content (should implements
Built
class frombuilt_value
package)no setter - error → Object?
-
Error when fetching is failed
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoading → bool
-
Is fetching in-progress
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rebuild(
void updates(LoaderStateBuilder< Content> )) → LoaderState<Content> - Rebuilds the instance.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited