Int.max constructor

Int.max(
  1. int max, {
  2. String? mal,
  3. String? large,
})

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

max the greatest valid integer number. mal "malformed", the error message for non-integer input values; the default value is 'non-integer input value'. character(s)'. large the error message if an input value is too large; the default value is 'it cannot be > max'.

Implementation

Int.max(int max, {String? mal, String? large})
    : _val = _AsInt(mal, _Logic(max: max, l: large).call);