Validates a maximum length.
Validator maxLength(int max, {String? message}) { _rules.add(MaxLengthRule(max, message ?? _messages.maxLength(max))); return this; }