PhoneCountryData class

Constructors

PhoneCountryData.fromMap(Map value, {String lang = ''})
factory

Properties

altMasks List<String>?
this field is used for those countries there there is more than one possible masks e.g. Brazil. In most cases this field is null IMPORTANT! all masks MUST be placed in an ascending order e.g. the shortest possible mask must be placed in a phoneMask variable, the longer ones must be in altMasks list starting from the shortest. That's because they are checked in a direct order on a user input
final
altMasksWithoutCountryCodes List<String>?
no setter
country String?
final
countryCode String?
final
hashCode int
The hash code for this object.
no setteroverride
internalPhoneCode String?
final
phoneCode String?
this field is used to store real phone code for most countries it will be the same as internalPhoneCode but there are cases when system need another internal code to tell apart similar phone code e.g. Russia and Kazakhstan Kazakhstan has the same code as Russia +7 but internal code is 77 because most phones there start with 77 while in Russia it's 79
final
phoneMask String?
final
phoneMaskWithoutCountryCode String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getCorrectAltMasks(String? countryCode) List<String>?
getCorrectMask(String? countryCode) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
phoneCodeToString() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(covariant PhoneCountryData other) bool
The equality operator.
override