withDay method

  1. @override
Jalali withDay(
  1. int day
)
override

changes day

throws on null argument

non-null

Implementation

@override
Jalali withDay(int day) {
  ArgumentError.checkNotNull(day, 'day');

  if (day == this.day) {
    return this;
  } else {
    return Jalali(year, month, day);
  }
}