ReqNum.range constructor
Constrains data to numeric values within the range min–max
.
min
the smallest valid number; it must be < max
.
max
the largest valid number; it must be > min
.
blank
the error message in case of a null or empty input value.
mal
"malformed", the error message in case of non-numeric input values.
small
the error message if an input is too small.
large
the error message if an input is too large.
Implementation
ReqNum.range(
num min,
num max, {
String? blank,
String? mal,
String? small,
String? large,
}) : this._num(
Num.range(min, max, mal: mal, small: small, large: large),
blank,
);