copyWith method
LiabilitiesObject
copyWith({
- List<
CreditCardLiability> ? credit, - List<
MortgageLiability> ? mortgage, - List<
StudentLoan> ? student,
Implementation
LiabilitiesObject copyWith(
{List<CreditCardLiability>? credit,
List<MortgageLiability>? mortgage,
List<StudentLoan>? student}) {
return LiabilitiesObject(
credit: credit ?? this.credit,
mortgage: mortgage ?? this.mortgage,
student: student ?? this.student);
}