copyWith method

Distance copyWith({
  1. int? actual_distance,
  2. double? calculated_distance,
  3. String? duration,
  4. DeliveryCost? deliveryCost,
  5. int? total_delivery_cost,
})

Implementation

Distance copyWith({
  int? actual_distance,
  double? calculated_distance,
  String? duration,
  DeliveryCost? deliveryCost,
  int? total_delivery_cost,
}) {
  return Distance(
    actual_distance: actual_distance ?? this.actual_distance,
    calculated_distance: calculated_distance ?? this.calculated_distance,
    duration: duration ?? this.duration,
    deliveryCost: deliveryCost ?? this.deliveryCost,
    total_delivery_cost: total_delivery_cost ?? this.total_delivery_cost,
  );
}