String getOfficalNameByCode(String code) { final matchingCountry = countryList().firstWhere( (country) => country.alpha2 == code, ); return matchingCountry.officialName; }