readData method

Future<List<int>> readData({
  1. int? start,
  2. int? length,
})

Read the bytes as a data buffer.

Implementation

Future<List<int>> readData({int? start, int? length}) async =>
    (await read(start: start, length: length)).expand((b) => b).toList();