DownloadStatus enum

Defines the possible statuses for a download task. This enum is used to track and manage the state of a download process throughout its lifecycle, from initialization to completion or failure.

Inheritance
Available extensions

Values

IDLE → const DownloadStatus

The download has not started yet.

DOWNLOADING → const DownloadStatus

The download is currently in progress.

PAUSED → const DownloadStatus

The download has been paused by the user or system.

COMPLETED → const DownloadStatus

The download has completed successfully.

FINISHED → const DownloadStatus

The download has finished all related operations (e.g., post-processing).

CANCELLED → const DownloadStatus

The download has been cancelled before completion.

FAILED → const DownloadStatus

The download has failed due to an error.

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<DownloadStatus>
A constant List of the values in this enum, in order of their declaration.