copyWithWrapped method

StandaloneAccountType copyWithWrapped({
  1. Wrapped<String>? depository,
  2. Wrapped<String>? credit,
  3. Wrapped<String>? loan,
  4. Wrapped<String>? investment,
  5. Wrapped<String>? other,
})

Implementation

StandaloneAccountType copyWithWrapped(
    {Wrapped<String>? depository,
    Wrapped<String>? credit,
    Wrapped<String>? loan,
    Wrapped<String>? investment,
    Wrapped<String>? other}) {
  return StandaloneAccountType(
      depository: (depository != null ? depository.value : this.depository),
      credit: (credit != null ? credit.value : this.credit),
      loan: (loan != null ? loan.value : this.loan),
      investment: (investment != null ? investment.value : this.investment),
      other: (other != null ? other.value : this.other));
}