AsyncIdle<T> class
final
Idle state - no connection, no data.
Corresponds to ConnectionState.none.
- Inheritance
-
- Object
- AsyncValue<
T> - AsyncIdle
Constructors
- AsyncIdle()
-
Creates an idle state.
const
Properties
- dataOrNull → T?
-
Returns the data if available, null otherwise.
no setterinherited
- errorOrNull → Object?
-
Returns the error if available, null otherwise.
no setterinherited
- hasData → bool
-
Whether there is data or error available.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isData → bool
-
Whether the operation completed successfully (ConnectionState.done with
data).
no setterinherited
- isError → bool
-
Whether the operation failed (has error).
no setterinherited
- isIdle → bool
-
Whether the operation hasn't started yet.
no setterinherited
- isLoading → bool
-
Whether the operation is in progress (ConnectionState.waiting).
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTraceOrNull → StackTrace?
-
Returns the stack trace if available, null otherwise.
no setterinherited
Methods
-
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