copyWith method

AccountModel copyWith({
  1. AddressModel? address,
  2. String? fullAddress,
  3. String? priceRange,
  4. bool? physicalProducts,
  5. String? businessDescription,
  6. String? personType,
  7. bool? acceptAutomaticTransfer,
  8. String? cnpj,
  9. String? companyName,
  10. String? cpf,
  11. String? name,
  12. String? phone,
  13. String? respName,
  14. String? respCPF,
  15. String? bank,
  16. String? bankAgency,
  17. String? accountType,
  18. 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,
  );
}