download method

Future<Response> download(
  1. String url,
  2. String savePath, {
  3. void onReceiveProgress(
    1. int,
    2. int
    )?,
})

Implementation

Future<Response> download(
  String url,
  String savePath, {
  void Function(int, int)? onReceiveProgress,
}) {
  final String _url = _reformatUrlIfInDebug(url);

  return client.download(
    _url,
    savePath,
    onReceiveProgress: onReceiveProgress,
  );
}