minLength static method
Validates minimum character length.
Implementation
static FormFieldValidator<String> minLength(int min, [String? message]) =>
(value) => (value != null && value.length < min)
? (message ?? 'Must be at least $min characters')
: null;