getCountryByPhoneCode static method

Country? getCountryByPhoneCode(
  1. String phoneCode
)

Get a country by its phone code

Returns null if the phone code is not found

Implementation

static Country? getCountryByPhoneCode(String phoneCode) {
  return _countriesByPhoneCode[phoneCode];
}