getCountryByCode static method

Country? getCountryByCode(
  1. String code
)

Get a country by its ISO code

Returns null if the country code is not found

Implementation

static Country? getCountryByCode(String code) {
  return _countriesByCode[code.toUpperCase()];
}