localeExists static method

bool localeExists(
  1. dynamic 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(localeName) {
  if (localeName == null) return false;
  return dateTimeSymbols.containsKey(localeName);
}