bytes property

Future<Uint8List> get bytes

get file content in bytes. for a big file this reads the whole file into memory, so prefer stream, store or moveTo for big files.

await file.bytes

Implementation

Future<Uint8List> get bytes async {
  return _bytes ??= await _file!.readAsBytes();
}