copyWith method

BankAccount copyWith({
  1. String? id,
  2. String? name,
  3. String? accountNumber,
  4. String? phone,
  5. BankAccountTypeEnum? accountType,
  6. String? routingNumber,
  7. String? updated,
  8. bool? isDefault,
  9. String? country,
  10. String? inputType,
  11. String? entityType,
  12. String? created,
  13. String? bankCode,
  14. 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
  );
}