copyWith method
StudentLoan
copyWith({
- String? accountId,
- String? accountNumber,
- List<
String> ? disbursementDates, - String? expectedPayoffDate,
- String? guarantor,
- double? interestRatePercentage,
- bool? isOverdue,
- double? lastPaymentAmount,
- String? lastPaymentDate,
- String? lastStatementIssueDate,
- String? loanName,
- StudentLoanStatus? loanStatus,
- double? minimumPaymentAmount,
- String? nextPaymentDueDate,
- String? originationDate,
- double? originationPrincipalAmount,
- double? outstandingInterestAmount,
- String? paymentReferenceNumber,
- PSLFStatus? pslfStatus,
- StudentRepaymentPlan? repaymentPlan,
- String? sequenceNumber,
- ServicerAddressData? servicerAddress,
- double? ytdInterestPaid,
- double? ytdPrincipalPaid,
Implementation
StudentLoan copyWith(
{String? accountId,
String? accountNumber,
List<String>? disbursementDates,
String? expectedPayoffDate,
String? guarantor,
double? interestRatePercentage,
bool? isOverdue,
double? lastPaymentAmount,
String? lastPaymentDate,
String? lastStatementIssueDate,
String? loanName,
StudentLoanStatus? loanStatus,
double? minimumPaymentAmount,
String? nextPaymentDueDate,
String? originationDate,
double? originationPrincipalAmount,
double? outstandingInterestAmount,
String? paymentReferenceNumber,
PSLFStatus? pslfStatus,
StudentRepaymentPlan? repaymentPlan,
String? sequenceNumber,
ServicerAddressData? servicerAddress,
double? ytdInterestPaid,
double? ytdPrincipalPaid}) {
return StudentLoan(
accountId: accountId ?? this.accountId,
accountNumber: accountNumber ?? this.accountNumber,
disbursementDates: disbursementDates ?? this.disbursementDates,
expectedPayoffDate: expectedPayoffDate ?? this.expectedPayoffDate,
guarantor: guarantor ?? this.guarantor,
interestRatePercentage:
interestRatePercentage ?? this.interestRatePercentage,
isOverdue: isOverdue ?? this.isOverdue,
lastPaymentAmount: lastPaymentAmount ?? this.lastPaymentAmount,
lastPaymentDate: lastPaymentDate ?? this.lastPaymentDate,
lastStatementIssueDate:
lastStatementIssueDate ?? this.lastStatementIssueDate,
loanName: loanName ?? this.loanName,
loanStatus: loanStatus ?? this.loanStatus,
minimumPaymentAmount: minimumPaymentAmount ?? this.minimumPaymentAmount,
nextPaymentDueDate: nextPaymentDueDate ?? this.nextPaymentDueDate,
originationDate: originationDate ?? this.originationDate,
originationPrincipalAmount:
originationPrincipalAmount ?? this.originationPrincipalAmount,
outstandingInterestAmount:
outstandingInterestAmount ?? this.outstandingInterestAmount,
paymentReferenceNumber:
paymentReferenceNumber ?? this.paymentReferenceNumber,
pslfStatus: pslfStatus ?? this.pslfStatus,
repaymentPlan: repaymentPlan ?? this.repaymentPlan,
sequenceNumber: sequenceNumber ?? this.sequenceNumber,
servicerAddress: servicerAddress ?? this.servicerAddress,
ytdInterestPaid: ytdInterestPaid ?? this.ytdInterestPaid,
ytdPrincipalPaid: ytdPrincipalPaid ?? this.ytdPrincipalPaid);
}