getMonths method

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

Implementation

@override
String getMonths(int months) {
  if (months == 0) {
    return '';
  } else if (months == 1) {
    return 'one month';
  } else if (months == 2) {
    return 'two months';
  } else {
    return '$months months';
  }
}