copyWith method
Creates a copy of this object with the given fields replaced with the new values.
Implementation
IsoDuration copyWith({
double? years,
double? months,
double? weeks,
double? days,
double? hours,
double? minutes,
double? seconds,
}) {
return IsoDuration(
years: years ?? this.years,
months: months ?? this.months,
weeks: weeks ?? this.weeks,
days: days ?? this.days,
hours: hours ?? this.hours,
minutes: minutes ?? this.minutes,
seconds: seconds ?? this.seconds,
);
}