LoadingStatus enum Null safety
A status of loading some data, usually by an api call
Constructors
- LoadingStatus()
-
const
Values
- initial → const LoadingStatus
-
No call has been made
const LoadingStatus(0)
- loading → const LoadingStatus
-
The call has been made and we are awaiting results
const LoadingStatus(1)
- success → const LoadingStatus
-
The call has returned and was successful
const LoadingStatus(2)
- failure → const LoadingStatus
-
The call has returned with an error
const LoadingStatus(3)
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
LoadingStatus> -
A constant List of the values in this enum, in order of their declaration.
[initial, loading, success, failure]