copyWith method

BankInfo copyWith({
  1. String? name,
  2. String? accountNumber,
  3. String? agencyNumber,
  4. String? accountType,
})

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,
  );
}