copyWith method

DailyStat copyWith({
  1. DateTime? deliveryDay,
  2. num? totalDeliveryPrice,
  3. int? dailyOrderCount,
})

Implementation

DailyStat copyWith({
  DateTime? deliveryDay,
  num? totalDeliveryPrice,
  int? dailyOrderCount,
}) =>
    DailyStat(
      deliveryDay: deliveryDay ?? this.deliveryDay,
      totalDeliveryPrice: totalDeliveryPrice ?? this.totalDeliveryPrice,
      dailyOrderCount: dailyOrderCount ?? this.dailyOrderCount,
    );