NSIntlPhoneHelper class

Constructors

NSIntlPhoneHelper()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

countrySelectionFromPhoneNumber({required String phoneNumber, required String countryCode}) CountrySelection?
Returns CountrySelection object for the given country code and phone number
getAllCountriesMap() Map<String, CountryModel>
Returns a map of all countries with their international dial code and area codes (if any) as the key
getMaskedPhoneNumber({required String countryCode, required String phoneNumber}) String
Returns the masked phone number for the given country code and phone number
getUnMaskedPhoneNumber({required String phoneNumber}) String
selectedCountryCode({required String countryCode, String phoneNumber = ''}) CountryModel?
Returns the country model for the given country code and phone number If the phone number is empty, the country model for the given country code is returned