0 purchases
chunked downloader
Dart downloader that lets you set a custom chunk sizes for a lot faster downloads.
Features #
custom chunk size downloads
stop downloads
pause downloads
resume downloads
Getting started #
Add this package to your pubspec.yml:
chunked_downloader: x.x.x
copied to clipboard
Usage #
You can use it like this: (note that everything is in bytes)
var chunkedDownloader = await ChunkedDownloader(
url: 'https://filesamples.com/samples/video/mjpeg/sample_3840x2160.mjpeg',
savedDir: '/temp',
fileName: 'sometestfile.mjpeg',
chunkSize: 1024 * 1024,
onError: (error) {},
onProgress: (received, total, speed) {},
onDone: (file) {})
.start();
chunkedDownloader.pause();
chunkedDownloader.resume();
chunkedDownloader.stop();
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.