copyWith method
Implementation
CalculateModel copyWith({
num? totalDeliveryPrice,
DateTime? etaToPu,
DateTime? etaToDel,
num? orderDistance,
num? deadHeadDistance,
num? evaluatedStage,
}) =>
CalculateModel(
totalDeliveryPrice: totalDeliveryPrice ?? this.totalDeliveryPrice,
etaToPu: etaToPu ?? this.etaToPu,
etaToDel: etaToDel ?? this.etaToDel,
orderDistance: orderDistance ?? this.orderDistance,
deadHeadDistance: deadHeadDistance ?? this.deadHeadDistance,
evaluatedStage: evaluatedStage ?? this.evaluatedStage,
);