stream method
read the file content as a stream, without loading it all in memory
await for (List<int> chunk in file.stream()) {}
Implementation
Stream<List<int>> stream() {
Uint8List? memory = _bytes;
if (memory != null) return Stream<List<int>>.value(memory);
return _file!.openRead();
}