copyWith method

ClientAddress copyWith({
  1. int? id,
  2. DateTime? dbDateCreated,
  3. DateTime? dbDateUpdated,
  4. int? client,
  5. ClientAddressStatus? status,
  6. ClientAddressType? type,
  7. String? contactName,
  8. String? companyName,
  9. String? street1,
  10. String? street2,
  11. String? street3,
  12. String? locality,
  13. String? region,
  14. String? postalCode,
  15. String? phone,
  16. String? airport,
  17. int? market,
})

Implementation

ClientAddress copyWith(
    {int? id,
    DateTime? dbDateCreated,
    DateTime? dbDateUpdated,
    int? client,
    ClientAddressStatus? status,
    ClientAddressType? type,
    String? contactName,
    String? companyName,
    String? street1,
    String? street2,
    String? street3,
    String? locality,
    String? region,
    String? postalCode,
    String? phone,
    String? airport,
    int? market}) {
  return ClientAddress(
      id: id ?? this.id,
      dbDateCreated: dbDateCreated ?? this.dbDateCreated,
      dbDateUpdated: dbDateUpdated ?? this.dbDateUpdated,
      client: client ?? this.client,
      status: status ?? this.status,
      type: type ?? this.type,
      contactName: contactName ?? this.contactName,
      companyName: companyName ?? this.companyName,
      street1: street1 ?? this.street1,
      street2: street2 ?? this.street2,
      street3: street3 ?? this.street3,
      locality: locality ?? this.locality,
      region: region ?? this.region,
      postalCode: postalCode ?? this.postalCode,
      phone: phone ?? this.phone,
      airport: airport ?? this.airport,
      market: market ?? this.market);
}