download_manager 1.0.0 download_manager: ^1.0.0 copied to clipboard
A package for automatically downloading and storing files. You can use this package to pass a list of files which will be downloaded and stored, with notifications sent via a stream when a file has be [...]
import 'dart:io';
import 'package:download_manager/download_manager.dart';
void main() {
File testFile = File("Testfile");
if (testFile.existsSync()) {
testFile.deleteSync();
}
DownloadManager.instance.add(DownloadableFileBasic(() => "Test string", testFile));
print(testFile.readAsStringSync());
}