getCountryEmoji static method
- OpenFoodFactsCountry? country
Returns the country flag emoji.
Implementation
static String? getCountryEmoji(OpenFoodFactsCountry? country) {
if (country == null) {
return null;
}
return getEmojiByCountryCode(country.offTag);
}