copyWith method
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,
})
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,
);
}