copyWithWrapped method

StudentLoanRepaymentModel copyWithWrapped({
  1. Wrapped<String>? type,
  2. Wrapped<double>? nonRepaymentMonths,
  3. Wrapped<double>? repaymentMonths,
})

Implementation

StudentLoanRepaymentModel copyWithWrapped(
    {Wrapped<String>? type,
    Wrapped<double>? nonRepaymentMonths,
    Wrapped<double>? repaymentMonths}) {
  return StudentLoanRepaymentModel(
      type: (type != null ? type.value : this.type),
      nonRepaymentMonths: (nonRepaymentMonths != null
          ? nonRepaymentMonths.value
          : this.nonRepaymentMonths),
      repaymentMonths: (repaymentMonths != null
          ? repaymentMonths.value
          : this.repaymentMonths));
}