maxLength static method
Implementation
static ValidationRule maxLength(int length, {String? message}) {
return ValidationRule(
(value) => value != null && value.length <= length ? null : '',
message ?? 'Must not exceed $length characters',
);
}