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 mes';
  } else if (months > 1 && months < 11) {
    return '~$months mesos';
  } else {
    return '$months mesos';
  }
}