DownloadUtil class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
download(String fileUrl, String filePath, {required dynamic callback(DownloadState value), ProgressCallback? onProgress, Map<String, dynamic>? queryParameters, CancelToken? cancelToken, bool deleteOnError = true, dynamic data, Options? options})
→ Future<void>
-
Using Dio to realize file download function
-
fileSize(String fileUrl, {dynamic data, Map<String, dynamic>? queryParameters, CancelToken? cancelToken, Options? options})
→ Future<int?>
-
Get file size through network link