isLeapYear method

  1. @override
bool isLeapYear()
override

Checks if a year is a leap year or not.

non-null

Implementation

@override
bool isLeapYear() {
  return _JalaliCalculation.calculate(year).leap == 0;
}