DownloadIsolate class

Handles the actual download logic within the isolate, including starting, pausing, cancelling, and writing data to file.

Constructors

DownloadIsolate.new()

Properties

client HttpClient?
HTTP client used for downloading files.
final
hashCode int
The hash code for this object.
no setterinherited
retryTimes int
Number of retry attempts left for the current download.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
taskStatus Map<String, DownloadStatus>
Tracks the status of each download task by task ID.
final

Methods

cancel(DownloadTask task) Future<void>
Marks the given task as cancelled.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause(DownloadTask task) Future<void>
Marks the given task as paused.
reset(DownloadTask task) → void
Resets the status and retry count for the given task.
start(DownloadTask task, SendPort sendPort) Future<void>
Starts downloading the file for the given task, sending progress and status updates back to the main isolate via sendPort.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited