getLocaleMonths static method

List<String> getLocaleMonths(
  1. DateTimePickerLocale? locale
)

Get locale month array

Implementation

static List<String> getLocaleMonths(DateTimePickerLocale? locale) {
  _StringsI18n i18n = datePickerI18n[locale!] ??
      datePickerI18n[DATETIME_PICKER_LOCALE_DEFAULT]!;
  List<String> months = i18n.getMonths();
  if (months.isNotEmpty) {
    return months;
  }
  return datePickerI18n[DATETIME_PICKER_LOCALE_DEFAULT]!.getMonths();
}