getLocaleText static method

Text getLocaleText(
  1. L10nLocale l
)

Implementation

static Text getLocaleText(L10nLocale l) => Text(l.label != null
    ? l.label!
    : l.languageCode + (l.countryCode != null ? '_' + l.countryCode! : ''));