DownLoadManage class

文件下载 懒加载单例

Constructors

DownLoadManage()
单例公开访问点
factory

Properties

downloadingUrls Map<String, CancelToken>
用于记录正在下载的url,避免重复下载 var downloadingUrls = new List();
read / write
hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

download(dynamic url, dynamic savePath, {ProgressCallback onReceiveProgress, Function done, Function failed}) Future
下载
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
showDownloadProgress(dynamic received, dynamic total) → void
stop(String url) → void
停止下载
toString() String
A string representation of this object.
inherited

Operators

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