getDisplayName method

String getDisplayName(
  1. String locale
)

Gets the localized name of the country

Implementation

String getDisplayName(String locale) {
  return nameTranslations[locale] ?? name;
}