download method

  1. @override
Stream<List<int>> download(
  1. String path, {
  2. Future<void>? abortTrigger,
})
override

Implementation

@override
Stream<List<int>> download(String path, {Future<void>? abortTrigger}) async* {
  // Cancelling this subscription closes the room tool output stream.
  if (abortTrigger != null) throw UnsupportedError('Room downloads use stream subscription cancellation');
  final stream = await room.storage.downloadStream(path);
  await for (final chunk in stream) {
    yield chunk.data;
  }
}