copyWith method

Client copyWith({
  1. int? id,
  2. DateTime? dbDateCreated,
  3. DateTime? dbDateUpdated,
  4. String? code,
  5. String? externalCode,
  6. String? name,
  7. ClientStatus? status,
  8. String? url,
  9. String? phone,
  10. List<int>? contacts,
  11. List<int>? addresses,
})

Implementation

Client copyWith(
    {int? id,
    DateTime? dbDateCreated,
    DateTime? dbDateUpdated,
    String? code,
    String? externalCode,
    String? name,
    enums.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);
}