parseLocales static method

Iterable<Locale> parseLocales(
  1. Iterable? values
)

Implementation

static Iterable<Locale> parseLocales(Iterable? values) {
  if (values == null || values.isEmpty) return [];
  final locales = values.map(parseLocale).whereType<Locale>();
  return locales;
}