monthLength property

  1. @override
int get monthLength
override

Computes number of days in a given month in a Jalali year.

non-null

Implementation

@override
int get monthLength {
  if (month <= 6) {
    return 31;
  } else if (month <= 11) {
    return 30;
  } else {
    // month == 12
    return isLeapYear() ? 30 : 29;
  }
}