Digit.min constructor

Digit.min(
  1. int min, {
  2. String? mal,
  3. String? short,
})

Constrains the input data to the digits 0-9 and its length (number of digits) to a minimum of min digits.

min the minimum number of digits; it must be > 0. mal "malformed", the error message if non-digit characters are found; the default value is 'non-digit character(s) found'. short the error message if the input length is shorter than min digits.

Implementation

Digit.min(int min, {String? mal, String? short})
    : assert(min > 0),
      _valDig = _DigitImpl(mal, Len.min(min, short: short));