minLength static method

Validator minLength(
  1. int min, {
  2. String? message,
})

Min length

Implementation

static Validator minLength(int min, {String? message}) {
  return (String? value) {
    if (value == null || value.length < min) return message ?? FVMessages.tooShort(min);
    return null;
  };
}