isSameYear method

bool isSameYear(
  1. PersianDate other
)

Whether this date is in the same Jalali year as other.

Implementation

bool isSameYear(PersianDate other) => year == other.year;