PhoneValidationOptions constructor
const
PhoneValidationOptions({
- List<
PhoneValidationRule> rules = const [PhoneValidationRule.checkFormat, PhoneValidationRule.checkMinLength, PhoneValidationRule.checkMaxLength], - int minLength = 8,
- int maxLength = 15,
- List<
CountryCode> ? allowedCountryCodes, - bool allowSpecialCharacters = true,
- bool checkCountryCode = false,
Implementation
const PhoneValidationOptions({
this.rules = const [
PhoneValidationRule.checkFormat,
PhoneValidationRule.checkMinLength,
PhoneValidationRule.checkMaxLength,
],
this.minLength = 8,
this.maxLength = 15,
this.allowedCountryCodes,
this.allowSpecialCharacters = true,
this.checkCountryCode = false, // New property for country code validation
});