read method

  1. @override
Future<Uint8List> read(
  1. int bytes
)
override

Reads up to count bytes from a file.

May return fewer than count bytes. This can happen, for example, when reading past the end of a file or when reading from a pipe that does not currently contain additional data.

An empty Uint8List will only be returned when reading past the end of the file or when count is 0.

Implementation

@override
Future<Uint8List> read(int bytes) => delegate.read(bytes);