datePickerStandaloneMonth method

  1. @override
String datePickerStandaloneMonth(
  1. int monthIndex
)
override

Month that is shown in CupertinoDatePicker spinner corresponding to the given month index in CupertinoDatePickerMode.monthYear mode.

This is distinct from datePickerMonth because in some languages, like Russian, the name of a month takes a different form depending on whether it is preceded by a day or whether it stands alone.

Examples: datePickerMonth(1) in:

  • US English: January
  • Korean: 1월
  • Russian: Январь

Implementation

@override
String datePickerStandaloneMonth(int monthIndex) {
  return _shortMonths.get(monthIndex);
}