readAt method
Read count bytes starting at offset.
Implementation
@override
Future<Uint8List> readAt(int offset, int count) {
if (_closed) {
throw StateError('This FileSource has been closed');
}
final read = _tail.then((_) async {
await _raf.setPosition(offset);
return _raf.read(count);
});
_tail = read.then<void>((_) {}, onError: (Object _) {});
return read;
}