size property

Future<int> get size

Returns the file size in bytes.

Implementation

Future<int> get size async {
  final b = await bytes;
  return b.length;
}