lengthSync method

  1. @override
int lengthSync()
override

Synchronously gets the length of the file.

Throws a FileSystemException if the operation fails.

Implementation

@override
int lengthSync() {
  _assertIsOpen();
  return _file.bytes.length;
}