length method

  1. @override
Future<int> length()
override

The length of the file.

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

Implementation

@override
Future<int> length() {
	return readAsBytes().then((bytes) => bytes.length);
}