DownloadClient class

GeneralLib

Constructors

DownloadClient.new({Client? httpClient, Directory? directoryDownload})
GeneralLib

Properties

directoryDownload Directory
GeneralLib
getter/setter pair
downloadClientDatas List<DownloadClientData>
GeneralLib
final
hashCode int
The hash code for this object.
no setterinherited
httpClient → Client
GeneralLib
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkDir({required Directory directoryDownload}) → void
GeneralLib
deleteDownloadClientData({required Uri uri}) → void
GeneralLib
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>
GeneralLib
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>
GeneralLib
getDownloadClientData({required Uri uri}) DownloadClientData?
GeneralLib
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 Methods

getContentLength({required Map headers}) int
GeneralLib
getContentName({required Map headers}) String?
GeneralLib