getLocale static method

Locale? getLocale(
  1. int index
)

Get a Locale from the List of 'supported' Locales.

Implementation

static Locale? getLocale(int index) {
  Locale? locale;
  final localesList = _supportedLocales;
  if (localesList.isNotEmpty && index >= 0) {
    locale = localesList[index];
  }
  return locale;
}