minLength<T> static method
FormFieldValidator that requires the length of the field's value to be greater than or equal to the provided minimum length.
Parameters:
minLengthThe minimum length to compare.errorTextThe error message when the length is invalid.checkNullOrEmptyWhether to check for null or empty values.
Implementation
static FormFieldValidator<T> minLength<T>(
int minLength, {
String? errorText,
bool checkNullOrEmpty = true,
}) => MinLengthValidator<T>(
minLength,
errorText: errorText,
checkNullOrEmpty: checkNullOrEmpty,
).validate;