readFileBytes static method

Future<List<int>> readFileBytes(
  1. String filename
)

Implementation

static Future<List<int>> readFileBytes(String filename) async {
  final content = <int>[];
  final file = await getFile(filename);
  final raf = file.openSync()..readIntoSync(content);
  await raf.close();

  return content;
}