getSupportedTypesForNonGeoEntity method

List<PhoneNumberType> getSupportedTypesForNonGeoEntity(
  1. int countryCallingCode
)

Returns the types for a country-code belonging to a non-geographical entity which the library has metadata for. Will not include fixedLineOrMobile (instead both fixedLine and fixedLineOrMobile (if numbers for this non-geographical entity could be classified as fixedLineOrMobile, both fixedLine and mobile would be present) and unknown.

No types will be returned for country calling codes that do not map to a known non-geographical entity.

Implementation

List<PhoneNumberType> getSupportedTypesForNonGeoEntity(
    int countryCallingCode) {
  PhoneMetadata? metadata =
      getMetadataForNonGeographicalRegion(countryCallingCode);
  if (metadata == null) return [];
  return _getSupportedTypesForMetadata((metadata));
}