copyWith method

CustomerModel copyWith({
  1. String? id,
  2. String? email,
  3. String? name,
  4. String? notes,
  5. String? createdAt,
  6. String? updatedAt,
  7. List<CustomVariables>? customVariables,
  8. String? zipCode,
  9. int? number,
  10. String? complement,
  11. 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,
  );
}