between<T> static method
FormFieldValidator that requires the field's value to be between two numbers.
Parameters:
minThe minimum value that the field's value should be greater than or equal to.maxThe maximum value that the field's value should be less than or equal to.errorTextThe error message when the value is not in the range.checkNullOrEmptyWhether to check for null or empty values.
Implementation
static FormFieldValidator<T> between<T>(
num min,
num max, {
String? errorText,
bool checkNullOrEmpty = true,
}) => BetweenValidator<T>(
min,
max,
errorText: errorText,
checkNullOrEmpty: checkNullOrEmpty,
).validate;