datePickerMonth method

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

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

Examples: datePickerMonth(1) in:

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

Implementation

@override
String datePickerMonth(int monthIndex) {
  // It doesn't actually have anything to do with _fullYearFormat. It's just
  // taking advantage of the fact that _fullYearFormat loaded the needed
  // locale's symbols.
  return _fullYearFormat.dateSymbols.MONTHS[monthIndex - 1];
}