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