readAllSync method

  1. @override
Uint8List readAllSync()
override

Reads the whole file as one buffer.

Implementations may return a mapped view; callers must not mutate it.

Implementation

@override
Uint8List readAllSync() {
  _checkOpen();
  return Uint8List.sublistView(_data, 0, _length);
}