addName method
Will search LocaleStore.supportedLocaleNames
by name and add found LocaleName to this list.
Implementation
bool addName(String str) {
if (str == showOtherLocales) {
addShowOtherLocales();
return true;
} else {
final entry = LocaleMatcher.byName(str);
if (entry != null && !entries.contains(entry)) {
locales.add(entry.locale);
names.add(entry.name);
entries.add(entry);
return true;
}
}
return false;
}