lengthSync abstract method
The length of the file in bytes, if already known without doing I/O, or
null otherwise.
Native pickers usually report a file's size as part of the pick result, in which case this returns it immediately. When they don't, use length instead, which falls back to reading the file to find out.
Implementation
int? lengthSync();