copyWith method
Implementation
CreditCardLiability copyWith(
{String? accountId,
List<Apr>? aprs,
bool? isOverdue,
double? lastPaymentAmount,
DateTime? lastPaymentDate,
DateTime? lastStatementIssueDate,
double? lastStatementBalance,
double? minimumPaymentAmount,
DateTime? nextPaymentDueDate}) {
return CreditCardLiability(
accountId: accountId ?? this.accountId,
aprs: aprs ?? this.aprs,
isOverdue: isOverdue ?? this.isOverdue,
lastPaymentAmount: lastPaymentAmount ?? this.lastPaymentAmount,
lastPaymentDate: lastPaymentDate ?? this.lastPaymentDate,
lastStatementIssueDate:
lastStatementIssueDate ?? this.lastStatementIssueDate,
lastStatementBalance: lastStatementBalance ?? this.lastStatementBalance,
minimumPaymentAmount: minimumPaymentAmount ?? this.minimumPaymentAmount,
nextPaymentDueDate: nextPaymentDueDate ?? this.nextPaymentDueDate);
}