withMonth method

  1. @override
Jalali withMonth(
  1. int month
)
override

changes month

throws on null argument

non-null

Implementation

@override
Jalali withMonth(int month) {
  ArgumentError.checkNotNull(month, 'month');

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