ReqInt.max constructor

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

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

max the greatest valid integer number. blank the error message in case of a null or empty input value. mal "malformed", the error message for non-integer input values. large the error message if an input is too large.

Implementation

ReqInt.max(int max, {String? blank, String? mal, String? large})
    : this._int(Int.max(max, mal: mal, large: large), blank);