copyWith method
Destination
copyWith(
{ - Location? location,
- int? order,
- String? address,
- String? entrance,
- String? doorPhone,
- int? floor,
- String? apartment,
- DateTime? arrivedAt,
- DateTime? handedOverAt,
- DateTime? eta,
- DateTime? skippedAt,
- Products? products,
- Client? client,
})
Implementation
Destination copyWith({
Location? location,
int? order,
String? address,
String? entrance,
String? doorPhone,
int? floor,
String? apartment,
String? comment,
DateTime? arrivedAt,
DateTime? handedOverAt,
DateTime? eta,
DateTime? skippedAt,
Products? products,
Client? client,
}) =>
Destination(
location: location ?? this.location,
order: order ?? this.order,
address: address ?? this.address,
entrance: entrance ?? this.entrance,
doorPhone: doorPhone ?? this.doorPhone,
floor: floor ?? this.floor,
apartment: apartment ?? this.apartment,
comment: comment ?? this.comment,
arrivedAt: arrivedAt ?? this.arrivedAt,
handedOverAt: handedOverAt ?? this.handedOverAt,
eta: eta ?? this.eta,
skippedAt: skippedAt ?? this.skippedAt,
products: products ?? this.products,
client: client ?? this.client,
);