getRegionCodesForCountryCode method

List<String> getRegionCodesForCountryCode(
  1. int countryCallingCode
)

Returns a list with the region codes that match the specific country calling code. For non-geographical country calling codes, the region code 001 is returned. Also, in the case of no region code being found, an empty list is returned.

countryCallingCode the country calling code.

Implementation

List<String> getRegionCodesForCountryCode(int countryCallingCode) {
  return _metadataMapLoader
          .countryCodeToRegionCodeMap['$countryCallingCode'] ??
      [];
}