read method

  1. @override
Future<ByteData> read()
override

Reads the whole content as raw bytes.

Implementation

@override
Future<ByteData> read() => stream()
    .then((stream) => ByteStream(stream).toBytes())
    .then((bytes) => ByteData.sublistView(bytes));