addYears method

CalendarYear addYears(
  1. int years
)

Adds the given number of years to this year. For instance:

<2015>.addYears(4) --> 2019
<2015>.addYears(-3) --> 2012

Implementation

CalendarYear addYears(int years) =>
    CalendarYear(year + years, _state, startingWeekday: startingWeekday);