timerPickerHour method

  1. @override
String timerPickerHour (int hour)
override

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

Examples: timerPickerHour(1) in:

  • US English: 1
  • Arabic: ١

Implementation

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