ZipCodeValidator constructor

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

Constructor for the ZIP code validator.

Implementation

ZipCodeValidator({
  /// {@macro zip_code_template}
  RegExp? regex,

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

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