readBytesWithHref method

Future<ByteData> readBytesWithHref(
  1. String href
)

Returns the resource data at the given href, or throws a Resource.Exception

Implementation

Future<ByteData> readBytesWithHref(String href) => getWithHref(href)
    .use((it) => it.read().then((data) => data.getOrThrow()));