ReqNum.max constructor

ReqNum.max(
  1. num max, {
  2. String? blank,
  3. String? mal,
  4. String? large,
})

Constrains data to numeric values that are less than or equal to max.

max the greatest valid number. 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. large the error message if an input is too large.

Implementation

ReqNum.max(num max, {String? blank, String? mal, String? large})
    : this._num(Num.max(max, mal: mal, large: large), blank);