download method

Future download(
  1. String path,
  2. String savePath, {
  3. bool autoStartTask = true,
  4. bool shouldTruncate = false,
})

Implementation

Future download(String path, String savePath,
    {bool autoStartTask = true, bool shouldTruncate = false}) async {
  path.replaceAll('\\', '/');

  await _client.download("/file/" + Uri.encodeFull(path), savePath);
}