FileDownloadTask class

Downloads a file from CAWS to a local file in the background.

Created and started by FileStorageReference.download. onComplete completes after a successful HTTP response and the start of the local write; it does not wait for the write to finish.

Inheritance

Properties

file ↔ File
The file on the local device which this task is downloading to. The file has to be created before starting the download.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
onComplete → Future<int>
Completes with the HTTP status code (200) when the download succeeds.
no setter
reference ↔ FileStorageReference
The file reference this task works on.
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → TaskStateType
no setterinherited

Methods

cancel() → void
Cancels the download task and completes onComplete with an error (408 Request Timeout).
override
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