timerPickerMinuteLabel method

  1. @override
String? timerPickerMinuteLabel(
  1. int minute
)
override

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

Implementation

@override
String? timerPickerMinuteLabel(int minute) {
  return intl.Intl.pluralLogic(
    minute,
    zero: timerPickerMinuteLabelZero,
    one: timerPickerMinuteLabelOne,
    two: timerPickerMinuteLabelTwo,
    few: timerPickerMinuteLabelFew,
    many: timerPickerMinuteLabelMany,
    other: timerPickerMinuteLabelOther,
    locale: _localeName,
  )?.replaceFirst(r'$minute', _decimalFormat.format(minute));
}