GetStatus<T> class
abstract
Represents the status of an asynchronous operation, such as loading, error, empty, success, or custom.
- Mixed-in types
- Implementers
- Available extensions
Constructors
- GetStatus()
-
const
- GetStatus.custom()
-
Creates a custom status.
factory
- GetStatus.empty()
-
Creates an empty status.
factory
- GetStatus.error(String message)
-
Creates an error status with the given error
message
.factory - GetStatus.loading()
-
Creates a loading status.
factory
- GetStatus.success(T data)
-
Creates a success status with the provided
data
.factory
Properties
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