DunsValidator constructor

DunsValidator({
  1. RegExp? regex,
  2. String? errorText,
  3. bool checkNullOrEmpty = true,
})

Constructor for the DUNS validator.

Implementation

DunsValidator({
  /// {@macro duns_template}
  RegExp? regex,
  super.errorText,
  super.checkNullOrEmpty,
}) : regex = regex ?? _duns;