read method

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

Reads the bytes at the given range.

When range is null, the whole content is returned. Out-of-range indexes are clamped to the available length automatically.

Implementation

@override
Future<ResourceTry<ByteData>> read({IntRange? range}) async =>
    ResourceTry.failure(error);