monthLength property

  1. @override
int get monthLength
override

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

Implementation

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