copyWith method

InstallmentPlan copyWith({
  1. int? termMonths,
  2. Money? monthlyAmount,
  3. Money? totalAmount,
  4. bool? isInterestFree,
  5. double? annualRate,
  6. DateTime? startDate,
})

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,
    );