ReqDigit.max constructor

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

Constrains the input data to the digits 0-9 and its length (number of digits) to a maximum of max digits.

max the maximum number of digits; it must be > 0. blank the error message in case of a null or empty input value. mal the error message if a non-digit character is found. long the error message if the input length is longer than max digits.

Implementation

ReqDigit.max(int max, {String? blank, String? mal, String? long})
    : this._dig(Digit.max(max, mal: mal, long: long), blank);