copyWith method
Implementation
InstallmentPlan copyWith({
int? termMonths,
Money? monthlyAmount,
Money? totalAmount,
bool? isInterestFree,
double? annualRate,
DateTime? startDate,
}) =>
InstallmentPlan(
termMonths: termMonths ?? this.termMonths,
monthlyAmount: monthlyAmount ?? this.monthlyAmount,
totalAmount: totalAmount ?? this.totalAmount,
isInterestFree: isInterestFree ?? this.isInterestFree,
annualRate: annualRate ?? this.annualRate,
startDate: startDate ?? this.startDate,
);