ReqDigit.range constructor
Constrains the input data to the digits 0-9
and its length (number of
digits) within the range min–max
.
min
the minimum number of digits; it must be > 0 and < max
.
max
the maximum number of digits; it must be > 0 and > min
.
blank
the error message in case of a null or empty input value.
mal
the error message if a non-digit character is found.
short
the error message if the input length is shorter than min
digits.
long
the error message if the number of digits is longer than max
.
Implementation
ReqDigit.range(
int min,
int max, {
String? blank,
String? mal,
String? short,
String? long,
}) : this._dig(
Digit.range(min, max, mal: mal, short: short, long: long),
blank,
);