max<T> static method
FormFieldValidator that requires the field's value to be less than (or equal) to the provided number.
Parameters:
maxThe maximum value to compare.inclusiveWhether the comparison is inclusive (default: true).errorTextThe error message when the value is invalid.checkNullOrEmptyWhether to check for null or empty values.
Implementation
static FormFieldValidator<T> max<T>(
num max, {
bool inclusive = true,
String? errorText,
bool checkNullOrEmpty = true,
}) => MaxValidator<T>(
max,
inclusive: inclusive,
errorText: errorText,
checkNullOrEmpty: checkNullOrEmpty,
).validate;