copyWithWrapped method

PSLFStatus copyWithWrapped({
  1. Wrapped<DateTime?>? estimatedEligibilityDate,
  2. Wrapped<double?>? paymentsMade,
  3. Wrapped<double?>? paymentsRemaining,
})

Implementation

PSLFStatus copyWithWrapped(
    {Wrapped<DateTime?>? estimatedEligibilityDate,
    Wrapped<double?>? paymentsMade,
    Wrapped<double?>? paymentsRemaining}) {
  return PSLFStatus(
      estimatedEligibilityDate: (estimatedEligibilityDate != null
          ? estimatedEligibilityDate.value
          : this.estimatedEligibilityDate),
      paymentsMade:
          (paymentsMade != null ? paymentsMade.value : this.paymentsMade),
      paymentsRemaining: (paymentsRemaining != null
          ? paymentsRemaining.value
          : this.paymentsRemaining));
}