datePickerHour method

  1. @override
String datePickerHour(
  1. int hour
)
override

Hour that is shown in CupertinoDatePicker spinner corresponding to the given hour value.

Examples: datePickerHour(1) in:

  • US English: 1
  • Arabic: ٠١

Implementation

@override
String datePickerHour(int hour) {
  return _singleDigitHourFormat.format(DateTime.utc(0, 0, 0, hour));
}