byCallingCode static method

Country byCallingCode(
  1. String code
)

gets country by Alpha3 code for more see : https://en.wikipedia.org/wiki/ISO_3166-1_numeric

Implementation

static Country byCallingCode(String code) {
  Country country = _countryData.countries.where((c) => c.callingCodes!.contains(code)).first;
  return country;
}