NotifierStateLoading<T, D> class
State representing a loading operation in the notifier.
- Inheritance
-
- Object
- NotifierState<
T, D> - NotifierStateLoading
Constructors
- NotifierStateLoading()
-
Creates a loading state.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
maybeWhen<
W> ({W loading()?, W loaded(D data)?, W error(dynamic error, String message)?, W orElse()?}) → W? -
Pattern matching for state types, with optional callbacks.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
W> ({required W loading(), required W loaded(D data), required W error(String message)}) → W -
Pattern matching for all state types.
inherited
-
whenOrElse<
W> ({W loading()?, W loaded(D data)?, W error(dynamic error, String message)?, required W orElse()}) → W -
Pattern matching for state types, with a required fallback.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited