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()
-
Constructs a new instance of
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
- data → T?
-
Available on GetStatus<
Gets the data associated with the status if it is a success status.T> , provided by the StatusDataExtension extensionno setter - error → dynamic
-
Available on GetStatus<
T> , provided by the StatusDataExtension extensionno setter - errorMessage → String
-
Available on GetStatus<
Gets the error message associated with the status.T> , provided by the StatusDataExtension extensionno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- isCustom → bool
-
Available on GetStatus<
Checks if the status is a custom status.T> , provided by the StatusDataExtension extensionno setter - isEmpty → bool
-
Available on GetStatus<
Checks if the status indicates that the state is empty.T> , provided by the StatusDataExtension extensionno setter - isError → bool
-
Available on GetStatus<
Checks if the status indicates that the state has encountered an error.T> , provided by the StatusDataExtension extensionno setter - isLoading → bool
-
Available on GetStatus<
Checks if the status indicates that the state is loading.T> , provided by the StatusDataExtension extensionno setter - isSuccess → bool
-
Available on GetStatus<
Checks if the status indicates that the state is successful.T> , provided by the StatusDataExtension extensionno setter - props → List
-
The list of properties used for determining equality.
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited