StatusDataExt<T> extension

Extension on GetStatus providing convenience getters.

on

Properties

data → T?

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

The data if this is a success status.
no setter
error → Object?

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

The error object if this is an error status.
no setter
errorMessage → String

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

The error message as a string.
no setter
isCustom → bool

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

Whether this status is custom.
no setter
isEmpty → bool

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

Whether this status is empty.
no setter
isError → bool

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

Whether this status is error.
no setter
isLoading → bool

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

Whether this status is loading.
no setter
isSuccess → bool

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

Whether this status is success.
no setter