datePickerHourSemanticsLabel method

  1. @override
String? datePickerHourSemanticsLabel(
  1. int hour
)
override

Semantics label for the given hour value in CupertinoDatePicker.

Implementation

@override
String? datePickerHourSemanticsLabel(int hour) {
  return intl.Intl.pluralLogic(
    hour,
    zero: datePickerHourSemanticsLabelZero,
    one: datePickerHourSemanticsLabelOne,
    two: datePickerHourSemanticsLabelTwo,
    few: datePickerHourSemanticsLabelFew,
    many: datePickerHourSemanticsLabelMany,
    other: datePickerHourSemanticsLabelOther,
    locale: _localeName,
  )?.replaceFirst(r'$hour', _decimalFormat.format(hour));
}