CountryValidator constructor

CountryValidator({
  1. List<String>? countryWhitelist,
  2. List<String>? countryBlacklist,
  3. String? errorText,
  4. bool checkNullOrEmpty = true,
})

Constructor for the country name validator.

Implementation

CountryValidator({
  List<String>? countryWhitelist,
  List<String>? countryBlacklist,

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

  /// {@macro base_validator_null_check}
  super.checkNullOrEmpty,
}) : countryWhitelist = countryWhitelist ?? <String>[],
     countryBlacklist = countryBlacklist ?? <String>[];