Task class

Represents a download operation.

Constructors

Task(Uri originalURL, String destFile, {WorkerBase? worker, Logger? logger})

Properties

destFile String
The destination file.
final
hashCode int
The hash code for this object.
no setterinherited
logger Logger?
Logger of this task.
latefinal
onBeforeDownload ↔ (dynamic Function(State, int)?)
Called when the download is about to start.
getter/setter pair
onProgress ↔ (dynamic Function(TaskProgress)?)
Called when a progress update is available.
getter/setter pair
originalURL Uri
The original URL passed in constructor.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state State?
Gets the current state information.
no setter
stateFile String?
Gets the state file path.
no setter
status TaskStatus
Gets the status of this task.
no setter

Methods

close() Future<void>
Releases any resources of the current dumper.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start() Future<void>
Starts or resumes downloading.
toString() String
A string representation of this object.
inherited

Operators

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