ReqHex.range constructor
Constrains the input data to the hexadecimal digits and its length within
the range min–max
.
min
the minimum number of hex-digits; it must be > 0 and < max
.
max
the maximum number of hex-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 non-hex-digit characters are found.
short
the error message if the input length is shorter than min
digits.
long
the error message if the number of hex-digits is longer than max
.
Implementation
ReqHex.range(
int min,
int max, {
String? blank,
String? mal,
String? short,
String? long,
}) : _reqHex = Pair.str2(
Req(blank: blank),
Hex.range(min, max, mal: mal, short: short, long: long),
);