copyWith method

Destination copyWith({
  1. Location? location,
  2. int? order,
  3. String? address,
  4. String? entrance,
  5. String? doorPhone,
  6. int? floor,
  7. String? apartment,
  8. String? comment,
  9. DateTime? arrivedAt,
  10. DateTime? handedOverAt,
  11. DateTime? eta,
  12. DateTime? skippedAt,
  13. Products? products,
  14. 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,
    );