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:
minLength
The minimum length to compare.errorText
The error message when the length is invalid.checkNullOrEmpty
Whether 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;