getFormatted static method

String getFormatted(
  1. Locale locale
)

Get formatted name with language code

Implementation

static String getFormatted(Locale locale) {
  final name = getName(locale);
  return "$name (${locale.languageCode.toUpperCase()})";
}