datePickerDayOfMonth method Null safety

  1. @override
String datePickerDayOfMonth(
  1. int dayIndex
)
override

Day of month that is shown in CupertinoDatePicker spinner corresponding to the given day index.

Examples: datePickerDayOfMonth(1) in:

  • US English: 1
  • Korean: 1일

Implementation

@override
String datePickerDayOfMonth(int dayIndex) {
  // Year and month doesn't matter since we just want to day formatted.
  return _dayFormat.format(DateTime.utc(0, 0, dayIndex));
}