DownloadClient class

Constructors

DownloadClient({Client? httpClient, Directory? directoryDownload})

Properties

directory_download Directory
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
http_client ↔ Client
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkDir({required Directory directoryDownload}) → void
download({required Uri url, Directory? directoryDownload, String? newFileName, bool isAutoDeleteDownloadClientData = true, required FutureOr onProggres(double proggres, File file), required FutureOr onDone(DownloadClientData downloadClientData)}) Future<DownloadClientData>
downloadRaw({required Uri url, required Directory? directoryDownload, required String? newFileName, Map<String, String>? headers, required bool isAutoDeleteDownloadClientData, required FutureOr onProggres(double proggres, File file), required FutureOr onDone(DownloadClientData downloadClientData)}) Future<DownloadClientData>
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

download_client_datas List<DownloadClientData>
getter/setter pair

Static Methods

deleteDownloadClientData({required Uri uri}) → void
getContentLength({required Map headers}) int
getDownloadClientData({required Uri uri}) DownloadClientData?