copyWithWrapped method

LiabilitiesObject copyWithWrapped({
  1. Wrapped<List<CreditCardLiability>?>? credit,
  2. Wrapped<List<MortgageLiability>?>? mortgage,
  3. Wrapped<List<StudentLoan>?>? student,
})

Implementation

LiabilitiesObject copyWithWrapped(
    {Wrapped<List<CreditCardLiability>?>? credit,
    Wrapped<List<MortgageLiability>?>? mortgage,
    Wrapped<List<StudentLoan>?>? student}) {
  return LiabilitiesObject(
      credit: (credit != null ? credit.value : this.credit),
      mortgage: (mortgage != null ? mortgage.value : this.mortgage),
      student: (student != null ? student.value : this.student));
}