copyWith method

PSLFStatus copyWith({
  1. DateTime? estimatedEligibilityDate,
  2. double? paymentsMade,
  3. double? paymentsRemaining,
})

Implementation

PSLFStatus copyWith(
    {DateTime? estimatedEligibilityDate,
    double? paymentsMade,
    double? paymentsRemaining}) {
  return PSLFStatus(
      estimatedEligibilityDate:
          estimatedEligibilityDate ?? this.estimatedEligibilityDate,
      paymentsMade: paymentsMade ?? this.paymentsMade,
      paymentsRemaining: paymentsRemaining ?? this.paymentsRemaining);
}