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 ?? 'Value must have at least $minLength characters.' : null);