ReqInt.range constructor

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

Constrains data to integer numbers within the range min–max.

min the smallest valid number; it must be < max. max the largest valid number; it must be > min. mal "malformed", the error message for non-integer input values. small the error message if an input value is too small. large the error message if an input value is too large.

Implementation

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