Digit.max constructor
Constrains the input data to the digits 0-9
and its length (number of
digits) to a maximum of max
digits.
max
the maximum 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'.
long
the error message if the input length is longer than max
digits.
Implementation
Digit.max(int max, {String? mal, String? long})
: assert(max > 0),
_valDig = _DigitImpl(mal, Len.max(max, long: long).call).call;