dl 1.0.6 dl: ^1.0.6 copied to clipboard
Simple library to download files easily.
Dart DL #
Simple library to download files easily.
Links #
Features #
- Uses native
dart:io
to get data. - Ability to parse different kind of files.
Usage #
import 'dart:io';
import 'import:dl/dl.dart';
Future<void> main() async {
const downloader = Downloader(provider: RawDLProvider());
final res = await downloader.downloadToFile(
Uri.parse('https://jaspervdj.be/lorem-markdownum/markdown.txt'),
File('lipsum.md'),
overwriteFile: true,
);
await res.asFuture();
}
Checkout /example
folder for examples.