download static method

Future<ResponseInfo> download(
  1. Uri uri,
  2. Uri destinationFileUri, {
  3. Map<String, String>? data,
  4. RequestInfo? requestInfo,
  5. HttpOperation operation = HttpOperation.get,
})

Downloads a file from the given uri to the destinationFileUri. The data is passed in the body of the request as JSON. Use operation to specify the HTTP verb as HttpOperation.get (default) or HttpOperation.post.