ReqDigit constructor

ReqDigit({
  1. String? blank,
  2. String? mal,
})

Constrains the input data to the digits 0-9.

blank the error message in case of a null or empty input value. mal the error message if a non-digit character is found.

Implementation

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