timerPickerHourLabel method

  1. @override
String timerPickerHourLabel (int hour)
override

Label that appears next to the hour picker in CupertinoCountdownTimerPicker when selected hour value is hour. This function will deal with pluralization based on the hour parameter.

Implementation

@override
String timerPickerHourLabel(int hour) => hour == 1 ? 'hour' : 'hours';