toFile static method
Downloads to an exact file path (not on web). await UDownloads.toFile(url, "/tmp/a.zip")
Implementation
static Future<UDownloadTask> toFile(String url, String path, {Map<String, String> headers = const <String, String>{}, bool wifiOnly = false}) =>
download(url, destination: UDownloadDestination.file(path), headers: headers, wifiOnly: wifiOnly);