download_task 1.0.1 copy "download_task: ^1.0.1" to clipboard
download_task: ^1.0.1 copied to clipboard

outdated

Resumable http download request - pause, resume, cancel, realtime progress and error handling

Resumable HTTP download request - pause, resume, cancel, realtime progress and error handling

Features #

  • 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

Getting started #

Include latest version from pub.dev to pubspec.yaml and simply run

await DownloadTask.download(url, destination);

Usage #

// 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 source code available at /example/download_task_example.dart

Additional information #

This package is primarly used in isolated_download_manager

12
likes
0
pub points
80%
popularity

Publisher

verified publisherstarkdev.org

Resumable http download request - pause, resume, cancel, realtime progress and error handling

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http

More

Packages that depend on download_task