copyWith method

StatisticModel copyWith({
  1. int? totalOrdersCount,
  2. num? totalDeliveryPrice,
  3. num? totalBeforeDeliveryPrice,
  4. num? totalBeforeDeliveryCount,
  5. List<DailyStat>? dailyStats,
})

Implementation

StatisticModel copyWith({
  int? totalOrdersCount,
  num? totalDeliveryPrice,
  num? totalBeforeDeliveryPrice,
  num? totalBeforeDeliveryCount,
  List<DailyStat>? dailyStats,
}) =>
    StatisticModel(
      totalOrdersCount: totalOrdersCount ?? this.totalOrdersCount,
      totalDeliveryPrice: totalDeliveryPrice ?? this.totalDeliveryPrice,
      totalBeforeDeliveryPrice:
          totalBeforeDeliveryPrice ?? this.totalBeforeDeliveryPrice,
      totalBeforeDeliveryCount:
          totalBeforeDeliveryCount ?? this.totalBeforeDeliveryCount,
      dailyStats: dailyStats ?? this.dailyStats,
    );