ReqInt.range constructor
Constrains data to integer numbers within the range min–max
.
min
the smallest valid number; it must be < max
.
max
the largest valid number; it must be > min
.
mal
"malformed", the error message for non-integer input values.
small
the error message if an input value is too small.
large
the error message if an input value is too large.
Implementation
ReqInt.range(
int min,
int max, {
String? blank,
String? mal,
String? small,
String? large,
}) : this._int(
Int.range(min, max, mal: mal, small: small, large: large),
blank,
);