onWriteFile method

  1. @override
Future<void> onWriteFile(
  1. String path,
  2. Stream<List<int>> byteStream
)
override

Implementation

@override
Future<void> onWriteFile(String path, Stream<List<int>> byteStream) async {
  IOSink sink = toFile(path).openWrite();
  await sink.addStream(byteStream);
  await sink.flush();
  await sink.close();
}