copyWith method

ContactWeebi copyWith({
  1. int? id,
  2. String? firstName,
  3. String? lastName,
  4. Phone? phone,
  5. String? mail,
  6. Address? addressFull,
  7. DateTime? creationDate,
  8. DateTime? updateDate,
  9. DateTime? statusUpdateDate,
  10. bool? status,
  11. Tristate? isWomanTri,
  12. bool? isClient,
  13. bool? isSupplier,
  14. List<String>? categories,
  15. String? avatar,
  16. int? overdraft,
})

Implementation

ContactWeebi copyWith({
  int? id,
  String? firstName,
  String? lastName,
  Phone? phone,
  String? mail,
  Address? addressFull,
  DateTime? creationDate,
  DateTime? updateDate,
  DateTime? statusUpdateDate,
  bool? status,
  Tristate? isWomanTri,
  bool? isClient,
  bool? isSupplier,
  List<String>? categories,
  String? avatar,
  int? overdraft,
}) {
  return ContactWeebi(
    id: id ?? this.id,
    firstName: firstName ?? this.firstName,
    lastName: lastName ?? this.lastName,
    addressFull: addressFull ?? this.addressFull,
    creationDate: creationDate ?? this.creationDate,
    updateDate: updateDate ?? this.updateDate,
    statusUpdateDate: statusUpdateDate ?? this.statusUpdateDate,
    status: status ?? this.status,
    phone: phone ?? this.phone,
    mail: mail ?? this.mail,
    avatar: avatar ?? this.avatar,
    overdraft: overdraft ?? this.overdraft,
    categories: categories ?? this.categories,
    isClient: isClient ?? this.isClient,
    isSupplier: isSupplier ?? this.isSupplier,
  );
}