copyWith method

StandaloneAccountType copyWith({
  1. String? depository,
  2. String? credit,
  3. String? loan,
  4. String? investment,
  5. String? other,
})

Implementation

StandaloneAccountType copyWith(
    {String? depository,
    String? credit,
    String? loan,
    String? investment,
    String? other}) {
  return StandaloneAccountType(
      depository: depository ?? this.depository,
      credit: credit ?? this.credit,
      loan: loan ?? this.loan,
      investment: investment ?? this.investment,
      other: other ?? this.other);
}