min method

Zod min(
  1. int min, [
  2. String? message
])

this method is responsible for min validation

Implementation

Zod min(int min, [String? message]) {
  return _add((v) {
    return Validations.minCharacters(v, min)
        ? null
        : message ?? _zod.min(min);
  });
}