length method

  1. @override
Future<int> length()

Get the length of the file. Returns a Future<int> that completes with the length in bytes.

Implementation

@override
Future<int> length() async {
  if (kTesting)
    print('[NativeWebXFile] length() called. Returning file size: ${_file.size}');
  return _file.size;
}