Country constructor
const
Country({
- required String name,
- required String flag,
- required String code,
- required String dialCode,
- required Map<
String, String> nameTranslations, - required int minLength,
- required int maxLength,
- String regionCode = "",
- String pattern = "",
- List<
String> allowedCharacters = const ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], - bool requiresAreaCode = false,
- String? areaCodePattern,
- String? exampleNumber,
Creates a new Country instance
Implementation
const Country({
required this.name,
required this.flag,
required this.code,
required this.dialCode,
required this.nameTranslations,
required this.minLength,
required this.maxLength,
this.regionCode = "",
this.pattern = "",
this.allowedCharacters = const [
'0',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9'
],
this.requiresAreaCode = false,
this.areaCodePattern,
this.exampleNumber,
});