copyWith method
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,
Implementation
ClientAddress copyWith(
{int? id,
DateTime? dbDateCreated,
DateTime? dbDateUpdated,
int? $client,
enums.ClientAddressStatus? status,
enums.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);
}