buildLanguageItems method
Implementation
List<FastItem<String>> buildLanguageItems(Iterable<Locale> locales) {
return locales.map((Locale locale) {
late final String languageName;
if (languageFormatter != null) {
languageName = languageFormatter!(locale.languageCode);
} else {
languageName = languageCodeToName(locale.languageCode);
}
return buildLanguageItem(languageName, locale.languageCode);
}).toList();
}