copyWith method
BankAccount
copyWith(
{ - String? id,
- String? name,
- String? accountNumber,
- String? phone,
- BankAccountTypeEnum? accountType,
- String? routingNumber,
- String? updated,
- bool? isDefault,
- String? country,
- String? inputType,
- String? entityType,
- String? created,
- String? bankCode,
- String? entityId,
})
Implementation
BankAccount copyWith({
String? id,
String? name,
String? accountNumber,
String? phone,
BankAccountTypeEnum? accountType,
String? routingNumber,
String? updated,
bool? isDefault,
String? country,
String? inputType,
String? entityType,
String? created,
String? bankCode,
String? entityId
}) {
return BankAccount(
id: id ?? this.id,
name: name ?? this.name,
accountNumber: accountNumber ?? this.accountNumber,
phone: phone ?? this.phone,
accountType: accountType ?? this.accountType,
routingNumber: routingNumber ?? this.routingNumber,
updated: updated ?? this.updated,
isDefault: isDefault ?? this.isDefault,
country: country ?? this.country,
inputType: inputType ?? this.inputType,
entityType: entityType ?? this.entityType,
created: created ?? this.created,
bankCode: bankCode ?? this.bankCode,
entityId: entityId ?? this.entityId
);
}