copyWith method

CalculateModel copyWith({
  1. num? totalDeliveryPrice,
  2. DateTime? etaToPu,
  3. DateTime? etaToDel,
  4. num? orderDistance,
  5. num? deadHeadDistance,
  6. num? evaluatedStage,
})

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,
    );