length property

Future<int> get length

Returns the byte length of the file.

Example:

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

Implementation

Future<int> get length async => _knownLength ?? (await _cachedBytes).length;