UploadStatus enum
The upload status of a batch, returned by UploadFileRequest.getStatus().
An exported enum (never a bare string) so it is discoverable and typo-proof.
Values
- inProgress → const UploadStatus
-
At least one file in the batch is still in a non-terminal state (queued / requesting a URL / uploading).
- idle → const UploadStatus
-
Nothing is in flight — either every file has reached a terminal state (uploaded / failed / rejected / cancelled), or the batch is empty (a fresh request, or one after
clearAll()).idledeliberately covers both: it asserts "no work running", which is true for the empty and the finished batch alike — unlike a name such asdone, which would wrongly imply a fresh batch had completed something.UploadFileListener.onCompletefires at the drain transition intoidle(an empty batch isidlewithout ever firingonComplete, since nothing drained).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
Constants
-
values
→ const List<
UploadStatus> - A constant List of the values in this enum, in order of their declaration.