bytes property

Future<Uint8List> get bytes

Returns the file contents as raw bytes.

Example:

final bytes = await file.bytes;
print(bytes.length);

Implementation

Future<Uint8List> get bytes async => await _cachedBytes;