withYear method
changes year
throws if year
is null
Implementation
@override
Jalali withYear(int year) {
ArgumentError.checkNotNull(year, 'year');
if (year == this.year) {
return this;
} else {
return Jalali(year, month, day);
}
}