FromLoading<T> class
final
Destinations available through a LoadingOperation reference.
Properties
-
error
→ ErrorOperation<
T> Function({T? data, Object? error, String? message, StackTrace? stackTrace}) -
Creates an error state, preserving cached data when omitted.
Passing
data: nullclears the cached data. Error details come from these arguments; omitted details default to null.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
-
idle
→ IdleOperation<
T> Function({T? data}) -
Creates an idle state, preserving cached data when omitted.
Passing
data: nullclears the cached data.no setterinherited - 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
-
success(
{required T data, String? message}) → SuccessOperation< T> -
Creates a success state with an explicit result satisfying
T. The optional message belongs to the new state.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited