getCountryEmoji static method

String? getCountryEmoji(
  1. OpenFoodFactsCountry? country
)

Returns the country flag emoji.

cf. https://emojipedia.org/flag-italy

Implementation

static String? getCountryEmoji(OpenFoodFactsCountry? country) {
  if (country == null) {
    return null;
  }
  return getEmojiByCountryCode(country.offTag);
}