localeExists static method
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 dateTimeSymbols.containsKey(localeName);
}