HasNumericCharsValidator constructor

HasNumericCharsValidator({
  1. int atLeast = 1,
  2. RegExp? regex,
  3. String? errorText,
  4. bool checkNullOrEmpty = true,
})

Constructor for the numeric characters validator.

Implementation

HasNumericCharsValidator({
  this.atLeast = 1,

  /// {@macro numeric_chars_template}
  RegExp? regex,

  /// {@macro base_validator_error_text}
  super.errorText,

  /// {@macro base_validator_null_check}
  super.checkNullOrEmpty,
}) : regex = regex ?? _number;