DownloadTask class

Constructors

DownloadTask({required int taskId, String accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", String userAgent = "Mozilla/5.0 (Android 7.0; Mobile; rv:54.0) Gecko/54.0 Firefox/54.0 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.125 Mobile Safari/603.2.4", String referer = "", required String url, required Map<String, String> headers, required String downloadPath, dynamic data})
DownloadTask.create({required int taskId, required String url, required String downloadPath, Map<String, String>? headers, dynamic data})
factory

Properties

accDownloadSize int
getter/setter pair
accept String
final
completeCallback VoidCallback?
getter/setter pair
data → dynamic
final
downloadCallback DoubleCallback?
getter/setter pair
downloadPath String
final
errorCallback VoidStringCallback?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
final
isSizeEnsued bool
getter/setter pair
referer String
final
retryCallback RetryCallbackType?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizeCallback DoubleCallback?
getter/setter pair
startCallback VoidCallback?
getter/setter pair
taskId int
getter/setter pair
url String
final
userAgent String
final

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