minute method

  1. @override
String minute(
  1. int amount, [
  2. bool abbreviated = true
])
override

Print amount minute for the corresponding locale. The unit is abbreviated if abbreviated is set to true.

Implementation

@override
String minute(int amount, [bool abbreviated = true]) {
  if (abbreviated) {
    return 'm';
  }

  switch (CzechDurationLocale.getPluralization(amount)) {
    case CzechDurationLocalePluralization.one:
      return 'minuta';
    case CzechDurationLocalePluralization.few:
      return 'minuty';
    case CzechDurationLocalePluralization.many:
    default:
      return 'minut';
  }
}