length method

  1. @override
Future<int> length()

The length of the file.

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

Implementation

@override
Future<int> length() {
  return Future.value(lengthSync());
}