download static method
Future<Response>
download(
- String urlPath,
- dynamic savePath, {
- ProgressCallback? onReceiveProgress,
- Map<String, dynamic>? queryParameters,
- CancelToken? cancelToken,
- bool deleteOnError = true,
- dynamic data,
- Options? options,
})
Implementation
static Future<Response> download(String urlPath, savePath,
{ProgressCallback? onReceiveProgress,
Map<String, dynamic>? queryParameters,
CancelToken? cancelToken,
bool deleteOnError = true,
String lengthHeader = Headers.contentLengthHeader,
data,
Options? options}) {
return HttpUtils().dio!.download(urlPath, savePath,
onReceiveProgress: onReceiveProgress,
queryParameters: queryParameters,
cancelToken: cancelToken,
data: data,
options: options);
}