months method

  1. @override
String months(
  1. int months
)
override

Format when time is in months

Implementation

@override
String months(int months) {
  if (months == 1) {
    return '1 měsíc';
  } else if (months > 1 && months < 5) {
    return '$months měsíce';
  }
  return '$months měsíců';
}