minLength static method
Implementation
static ValidationRule minLength(int length, [String? message]) {
return ValidationRule((value) {
if (value == null || value.isEmpty) return null;
return value.length < length ? (message ?? 'Minimum $length characters required') : null;
});
}