addYears method
- int years
Returns the date years years later; negative values go back.
Esfand 30 in a leap year becomes Esfand 29 when the target year is not a leap year. The result is date-only. Throws ArgumentError when the result is outside the supported range.
Implementation
PersianDate addYears(int years) => addMonths(years * 12);