copyWith method
BankAccount
copyWith(
{ - String? id,
- String? name,
- String? maskedNumber,
- Money? balance,
- BankAccountStatus? status,
- BankAccountType? type,
- String? currencyCode,
- String? ibanOrAccountNumber,
- String? sortCodeOrBic,
- List<String>? ownerIds,
})
Implementation
BankAccount copyWith({
String? id,
String? name,
String? maskedNumber,
Money? balance,
BankAccountStatus? status,
BankAccountType? type,
String? currencyCode,
String? ibanOrAccountNumber,
String? sortCodeOrBic,
List<String>? ownerIds,
}) =>
BankAccount(
id: id ?? this.id,
name: name ?? this.name,
maskedNumber: maskedNumber ?? this.maskedNumber,
balance: balance ?? this.balance,
status: status ?? this.status,
type: type ?? this.type,
currencyCode: currencyCode ?? this.currencyCode,
ibanOrAccountNumber: ibanOrAccountNumber ?? this.ibanOrAccountNumber,
sortCodeOrBic: sortCodeOrBic ?? this.sortCodeOrBic,
ownerIds: ownerIds ?? this.ownerIds,
);