returns the length of the file. If needed this method may be removed but the length check must be done in the individual read-methods then.
@override Future<int> length() { return Future.value(content.length); }