validateMinLength static method

bool validateMinLength(
  1. String value,
  2. int minLength
)

Validates if the value matches the min length using MinLengthRule. Returns true if the value is at least the min length, otherwise false. Example:

IstValidator.validateMinLength("hello", 3); // true
IstValidator.validateMinLength("hi", 5); // false

Implementation

static bool validateMinLength(String value, int minLength) {
  return MinLengthRule(minLength).validate(value) == null;
}