copyWith method
CustomerModel
copyWith(
{ - String? id,
- String? email,
- String? name,
- String? notes,
- String? createdAt,
- String? updatedAt,
- List<CustomVariables>? customVariables,
- String? zipCode,
- int? number,
- String? complement,
- String? cpfCnpj,
})
Implementation
CustomerModel copyWith({
String? id,
String? email,
String? name,
String? notes,
String? createdAt,
String? updatedAt,
List<CustomVariables>? customVariables,
String? zipCode,
int? number,
String? complement,
String? cpfCnpj,
}) {
return CustomerModel(
id: id ?? this.id,
email: email ?? this.email,
name: name ?? this.name,
notes: notes ?? this.notes,
createdAt: createdAt ?? this.createdAt,
updatedAt: updatedAt ?? this.updatedAt,
customVariables: customVariables ?? this.customVariables,
zipCode: zipCode ?? this.zipCode,
number: number ?? this.number,
complement: complement ?? this.complement,
cpfCnpj: cpfCnpj ?? this.cpfCnpj,
);
}