size property
Size of the file.
Implementation
@override
Future<int> get size async {
final size = _size;
if (size != null) {
return size;
}
final file = _inputFile;
if (file != null) {
return file.length();
}
// the constructors ensures it won't reach to this point, but just in case
throw const InvalidFileException();
}