copyWith method
Implementation
BankInfo copyWith({
String? name,
String? accountNumber,
String? agencyNumber,
String? accountType,
}) {
return BankInfo(
name: name ?? this.name,
accountNumber: accountNumber ?? this.accountNumber,
agencyNumber: agencyNumber ?? this.agencyNumber,
accountType: accountType ?? this.accountType,
);
}