localeExists static method
- String? localeName
Return true if the locale exists, or if it is null. The null case is interpreted to mean that we use the default locale.
Implementation
static bool localeExists(String? localeName) {
if (localeName == null) return false;
return numberFormatSymbols.containsKey(localeName);
}