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ícem';
  } else if (months > 1 && months < 5) {
    return '$months měsíci';
  }
  return '$months měsíci';
}