Country constructor

const Country({
  1. required String name,
  2. required String flag,
  3. required String code,
  4. required String dialCode,
  5. required Map<String, String> nameTranslations,
  6. required int minLength,
  7. required int maxLength,
  8. String regionCode = "",
  9. String pattern = "",
  10. List<String> allowedCharacters = const ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],
  11. bool requiresAreaCode = false,
  12. String? areaCodePattern,
  13. 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,
});