readRaw method
Reads the raw bytes of this stream. This means no filtering is applied. When readRaw returns, the stream will be positioned back to where it was before readRaw started.
NOTE: The returned data should not be modified as it could be backed by the original data. If you need to modify the data, make a copy of it first.
Implementation
Future<Uint8List> readRaw() async {
final pos = await dataSource.position;
await dataSource.seek(offset);
final list = await dataSource.fastRead(length);
await dataSource.seek(pos);
return list;
}