datePickerYear method

  1. @override
String datePickerYear(
  1. int yearIndex
)
override

Year that is shown in CupertinoDatePicker spinner corresponding to the given year index.

Examples: datePickerYear(1) in:

  • US English: 2018
  • Korean: 2018년

Implementation

@override
String datePickerYear(int yearIndex) {
  return _fullYearFormat.format(DateTime.utc(yearIndex));
}