datePickerMinuteSemanticsLabel method

  1. @override
String datePickerMinuteSemanticsLabel (int minute)
override

Semantics label for the given minute value in CupertinoDatePicker.

Implementation

@override
String datePickerMinuteSemanticsLabel(int minute) {
  return intl.Intl.pluralLogic(
    minute,
    zero: datePickerMinuteSemanticsLabelZero,
    one: datePickerMinuteSemanticsLabelOne,
    two: datePickerMinuteSemanticsLabelTwo,
    few: datePickerMinuteSemanticsLabelFew,
    many: datePickerMinuteSemanticsLabelMany,
    other: datePickerMinuteSemanticsLabelOther,
    locale: _localeName,
  ).replaceFirst(r'$minute', _decimalFormat.format(minute));
}