max<T> static method
Gets a validator that requires the control's value to be less than or equal to max value.
The argument max must not be null.
Implementation
static ValidatorFunction max<T>(T max) => MaxValidator<T>(max).validate;