minLength static method
Implementation
static String? minLength(String? value, int minLength, {String? errorMessage}) {
if (value == null || value.length < minLength) {
return errorMessage ?? 'Minimum length is $minLength characters';
}
return null;
}