addYears method

  1. @override
Jalali addYears(
  1. int years
)
override

add years to this date

throws on null argument

non-null

Implementation

@override
Jalali addYears(int years) {
  ArgumentError.checkNotNull(years, 'years');

  if (years == 0) {
    return this;
  } else {
    return Jalali(year + years, month, day);
  }
}