utils/country_dial_codes library

Constants

countryDialCodes → const Map<String, String>
Maps ISO 3166-1 alpha-2 country codes to their international dial (area) code.

Functions

dialCodeForCountry(String countryCode) String
Returns the international dial code for the given ISO 3166-1 alpha-2 countryCode (e.g. "VN" -> "84"), or an empty string if unknown.