datePickerMinuteSemanticsLabel method Null safety

  1. @override
String? datePickerMinuteSemanticsLabel(
  1. 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));
}