putStream method
Saves the given stream to the given path on the disk.
Implementation
@override
Future<void> putStream(String path, Stream<List<int>> stream) async {
final file = _file(path);
await file.create(recursive: true);
final sink = file.openWrite();
await sink.addStream(stream);
await sink.close();
}