copyWith method
Distance
copyWith({
- int? actual_distance,
- double? calculated_distance,
- String? duration,
- DeliveryCost? deliveryCost,
- 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,
);
}