discontinuedPackage refreshed has been discontinued and replaced by getxify.

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<T>, provided by the StatusDataExtension extension

Gets the data associated with the status if it is a success status.
no setter
error → dynamic

Available on GetStatus<T>, provided by the StatusDataExtension extension

no setter
errorMessage → String

Available on GetStatus<T>, provided by the StatusDataExtension extension

Gets the error message associated with the status.
no setter
hashCode → int
The hash code for this object.
no setterinherited
isCustom → bool

Available on GetStatus<T>, provided by the StatusDataExtension extension

Checks if the status is a custom status.
no setter
isEmpty → bool

Available on GetStatus<T>, provided by the StatusDataExtension extension

Checks if the status indicates that the state is empty.
no setter
isError → bool

Available on GetStatus<T>, provided by the StatusDataExtension extension

Checks if the status indicates that the state has encountered an error.
no setter
isLoading → bool

Available on GetStatus<T>, provided by the StatusDataExtension extension

Checks if the status indicates that the state is loading.
no setter
isSuccess → bool

Available on GetStatus<T>, provided by the StatusDataExtension extension

Checks if the status indicates that the state is successful.
no 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