Resumable HTTP download request - pause, resume, cancel, realtime progress and error handling
- Take control - pause, resume and cancel
- Listen to updates - realtime progress and failure handling
- Pure Dart - only
http
dependency - Easy to use - singletone and stream
Include latest version from pub.dev to pubspec.yaml
and simply run
await DownloadTask.download(url, destination);
// initialize download request
final task = await DownloadTask.download(url, File("image.webp"));
// listen to state changes
task.events.listen((event) { ... }
// control task
task.pause();
task.resume();
task.cancel();
Example full source code available at example's directory
This package is primarly used in isolated_download_manager