httpDownload function

Future<HttpResult> httpDownload(
  1. Uri url, {
  2. List<LabelValue>? args,
  3. Map<String, String>? headers,
  4. required File toFile,
  5. ProgressCallback? progress,
})

Implementation

Future<HttpResult> httpDownload(Uri url, {List<LabelValue<dynamic>>? args, Map<String, String>? headers, required File toFile, ProgressCallback? progress}) {
  return HttpGet(url).argPairs(args ?? []).headers(headers).download(toFile: toFile, onProgress: progress);
}