PhoneFormatSpec.generic constructor
PhoneFormatSpec.generic({
- String example = '1234567890',
Fallback spec used when no country-specific override exists. Accepts up to 15 digits (E.164 max) with simple grouping.
Implementation
factory PhoneFormatSpec.generic({String example = '1234567890'}) {
return PhoneFormatSpec(
pattern: '#### ### ####',
example: example,
minLength: 4,
maxLength: 15,
);
}