hasLocale method

bool hasLocale(
  1. String? locale
)

Whether locale is defined (false for null).

Implementation

bool hasLocale(String? locale) => locale != null && _locales.contains(locale);