copy method
Copy this date object with some fields changed
non-null
Implementation
@override
Jalali copy(
{int? year, int? month, int? day, int? hour, int? minute, int? second}) {
if (year == null &&
month == null &&
day == null &&
hour == null &&
minute == null &&
second == null) {
return this;
} else {
return Jalali(year ?? this.year, month ?? this.month, day ?? this.day,
hour ?? this.hour, minute ?? this.minute, second ?? this.second);
}
}