Num.max constructor

Num.max(
  1. num max, {
  2. String? mal,
  3. String? large,
})

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

max the greatest valid number. mal "malformed", the error message in case of non-numeric input values; the default value is 'not a number'. large the error message if an input is too large; the default value is 'it cannot be > max'.

Implementation

Num.max(num max, {String? mal, String? large})
    : _val = _AsNum(mal, _Logic(max: max, l: large).call);