read method

  1. @override
Future<ByteData> read({
  1. IntRange? range,
})
override

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 => ZipStream(archive, entry)
    .readData(start: range?.start, length: range?.length)
    .then((data) => data.toByteData());