readAllAsUint8List method

Future<Uint8List> readAllAsUint8List()

Reads all bytes and returns them as a Uint8List.

Implementation

Future<Uint8List> readAllAsUint8List() async {
  List<int> bytes = await readAll();
  return Uint8List.fromList(bytes);
}