microseconds method

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

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

Implementation

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

  switch (CzechDurationLocale.getPluralization(amount)) {
    case CzechDurationLocalePluralization.one:
      return 'mikrosekunda';
    case CzechDurationLocalePluralization.few:
      return 'mikrosekundy';
    case CzechDurationLocalePluralization.many:
      return 'mikrosekund';
  }
}