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.

Inheritance
Available extensions

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()). idle deliberately covers both: it asserts "no work running", which is true for the empty and the finished batch alike — unlike a name such as done, which would wrongly imply a fresh batch had completed something. UploadFileListener.onComplete fires at the drain transition into idle (an empty batch is idle without ever firing onComplete, 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.