copyWith method
Client
copyWith(
{ - int? id,
- DateTime? dbDateCreated,
- DateTime? dbDateUpdated,
- String? code,
- String? externalCode,
- String? name,
- ClientStatus? status,
- String? url,
- String? phone,
- List<int>? contacts,
- List<int>? addresses,
})
Implementation
Client copyWith(
{int? id,
DateTime? dbDateCreated,
DateTime? dbDateUpdated,
String? code,
String? externalCode,
String? name,
ClientStatus? status,
String? url,
String? phone,
List<int>? contacts,
List<int>? addresses}) {
return Client(
id: id ?? this.id,
dbDateCreated: dbDateCreated ?? this.dbDateCreated,
dbDateUpdated: dbDateUpdated ?? this.dbDateUpdated,
code: code ?? this.code,
externalCode: externalCode ?? this.externalCode,
name: name ?? this.name,
status: status ?? this.status,
url: url ?? this.url,
phone: phone ?? this.phone,
contacts: contacts ?? this.contacts,
addresses: addresses ?? this.addresses);
}