streamTo method
Stream the file content to a StreamSink (memory efficient)
Implementation
Future<void> streamTo(StreamSink<List<int>> sink) async {
final bytes = await _cachedBytes;
sink.add(bytes);
}
Stream the file content to a StreamSink (memory efficient)
Future<void> streamTo(StreamSink<List<int>> sink) async {
final bytes = await _cachedBytes;
sink.add(bytes);
}