months method

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

Format when time is in months

Implementation

@override
String months(int months) {
  if (months == 2) {
    return 'شهرين';
  } else if (months > 2 && months < 11) {
    return '$months اشهر';
  } else if (months > 10) {
    return '$months شهر';
  }
  return '$months شهور';
}