copyWith method
AccountModel
copyWith({
- AddressModel? address,
- String? fullAddress,
- String? priceRange,
- bool? physicalProducts,
- String? businessDescription,
- String? personType,
- bool? acceptAutomaticTransfer,
- String? cnpj,
- String? companyName,
- String? cpf,
- String? name,
- String? phone,
- String? respName,
- String? respCPF,
- String? bank,
- String? bankAgency,
- String? accountType,
- String? bankAccountNumber,
Implementation
AccountModel copyWith({
AddressModel? address,
String? fullAddress,
String? priceRange,
bool? physicalProducts,
String? businessDescription,
String? personType,
bool? acceptAutomaticTransfer,
String? cnpj,
String? companyName,
String? cpf,
String? name,
String? phone,
String? respName,
String? respCPF,
String? bank,
String? bankAgency,
String? accountType,
String? bankAccountNumber,
}) {
return AccountModel(
address ?? this._address,
fullAddress ?? this._fullAddress,
priceRange: priceRange ?? this.priceRange,
physicalProducts: physicalProducts ?? this.physicalProducts,
businessDescription: businessDescription ?? this.businessDescription,
personType: personType ?? this.personType,
acceptAutomaticTransfer: acceptAutomaticTransfer ?? this.acceptAutomaticTransfer,
cnpj: cnpj ?? this.cnpj,
companyName: companyName ?? this.companyName,
cpf: cpf ?? this.cpf,
name: name ?? this.name,
phone: phone ?? this.phone,
respName: respName ?? this.respName,
respCPF: respCPF ?? this.respCPF,
bank: bank ?? this.bank,
bankAgency: bankAgency ?? this.bankAgency,
accountType: accountType ?? this.accountType,
bankAccountNumber: bankAccountNumber ?? this.bankAccountNumber,
);
}