read method
Reads the whole content of this entry.
When range
is null, the whole content is returned. Out-of-range indexes are clamped to the
available length automatically.
Implementation
@override
Future<ByteData> read({IntRange? range}) async => FileStream.fromFile(file)
.then((stream) =>
stream.readData(start: range?.start, length: range?.length))
.then((data) => data.toByteData());