minLength method

ValidationBuilder minLength(
  1. int minLength, [
  2. String? message
])

Value length must be greater than or equal to minLength

Implementation

ValidationBuilder minLength(int minLength, [String? message]) =>
    add((v) => v!.length < minLength
        ? message ?? _locale.minLength(v, minLength)
        : null);