read abstract method

Future<List<T>> read(
  1. int size
)

Returns a list of the next size elements.

Returns a list with less than size elements if the end of stream is encountered before size elements are read.

If an error is encountered before reading size elements, the error will be thrown.

Implementation

Future<List<T>> read(int size);