DownloadManager class

Constructors

DownloadManager()
Public constructor

Properties

hashCode int
The hash code for this object.
no setterinherited
initialized bool
Current initialization status
getter/setter pair
queue List<DownloadRequest>
Queued requests (unmodifiable)
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelAll() → void
Clear the queue and cancel all active requests
dispose() Future<void>
Clean up the isolates and clear the queue
download(String url, {String? path, int? filesize, bool? safeRange}) DownloadRequest
Add request to the queue if path is empty base _directory used
init({int isolates = 3, String? directory, BaseClient? client, bool? safeRange}) Future<void>
Initialize instance isolates amount of isolates to use isolates should be less than Platform.numberOfProcessors - 3 directory where to save files, without trailing slash /, default to /tmp safeRange used to skip range header if bytes end not found
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

Static Properties

instance DownloadManager
final