minLength static method
Implementation
static String? minLength(String? value, int length,
[String fieldName = 'This field']) {
if (value == null || value.length < length) {
return '$fieldName must be at least $length characters';
}
return null;
}