FileDownloader class

文件下载器

Constructors

FileDownloader()

Properties

hashCode int
The hash code for this object.
no setterinherited
isDownloading bool
是否正在下载
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelDownload() → void
取消下载
download(String url, String savePath, {void onReceiveProgress(double)?, Map<String, dynamic>? queryParameters, CancelToken? cancelToken, bool deleteOnError = true, String lengthHeader = Headers.contentLengthHeader, Object? data, Options? options}) Future
下载文件
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