ReqNum.range constructor

ReqNum.range(
  1. num min,
  2. num max, {
  3. String? blank,
  4. String? mal,
  5. String? small,
  6. String? large,
})

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,
      );