withMonth method

Jalali withMonth (
  1. int month
)

changes month

throws on null argument

non-null

Implementation

Jalali withMonth(int month) {
  ArgumentError.checkNotNull(month, "month");

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