max<T> static method
Creates 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 Validator<dynamic> max<T>(T max) => MaxValidator<T>(max);