feat: product analytic range date

This commit is contained in:
efrilm
2025-08-18 17:06:41 +07:00
parent ac8c2c0f54
commit a61b19e45c
11 changed files with 554 additions and 309 deletions
+8 -8
View File
@@ -5972,7 +5972,7 @@ mixin _$ProductAnalyticData {
String get categoryId => throw _privateConstructorUsedError;
String get categoryName => throw _privateConstructorUsedError;
int get quantitySold => throw _privateConstructorUsedError;
double get revenue => throw _privateConstructorUsedError;
int get revenue => throw _privateConstructorUsedError;
double get averagePrice => throw _privateConstructorUsedError;
int get orderCount => throw _privateConstructorUsedError;
@@ -5996,7 +5996,7 @@ abstract class $ProductAnalyticDataCopyWith<$Res> {
String categoryId,
String categoryName,
int quantitySold,
double revenue,
int revenue,
double averagePrice,
int orderCount,
});
@@ -6051,7 +6051,7 @@ class _$ProductAnalyticDataCopyWithImpl<$Res, $Val extends ProductAnalyticData>
revenue: null == revenue
? _value.revenue
: revenue // ignore: cast_nullable_to_non_nullable
as double,
as int,
averagePrice: null == averagePrice
? _value.averagePrice
: averagePrice // ignore: cast_nullable_to_non_nullable
@@ -6081,7 +6081,7 @@ abstract class _$$ProductAnalyticDataImplCopyWith<$Res>
String categoryId,
String categoryName,
int quantitySold,
double revenue,
int revenue,
double averagePrice,
int orderCount,
});
@@ -6135,7 +6135,7 @@ class __$$ProductAnalyticDataImplCopyWithImpl<$Res>
revenue: null == revenue
? _value.revenue
: revenue // ignore: cast_nullable_to_non_nullable
as double,
as int,
averagePrice: null == averagePrice
? _value.averagePrice
: averagePrice // ignore: cast_nullable_to_non_nullable
@@ -6174,7 +6174,7 @@ class _$ProductAnalyticDataImpl implements _ProductAnalyticData {
@override
final int quantitySold;
@override
final double revenue;
final int revenue;
@override
final double averagePrice;
@override
@@ -6239,7 +6239,7 @@ abstract class _ProductAnalyticData implements ProductAnalyticData {
required final String categoryId,
required final String categoryName,
required final int quantitySold,
required final double revenue,
required final int revenue,
required final double averagePrice,
required final int orderCount,
}) = _$ProductAnalyticDataImpl;
@@ -6255,7 +6255,7 @@ abstract class _ProductAnalyticData implements ProductAnalyticData {
@override
int get quantitySold;
@override
double get revenue;
int get revenue;
@override
double get averagePrice;
@override
@@ -27,7 +27,7 @@ class ProductAnalyticData with _$ProductAnalyticData {
required String categoryId,
required String categoryName,
required int quantitySold,
required double revenue,
required int revenue,
required double averagePrice,
required int orderCount,
}) = _ProductAnalyticData;
@@ -38,7 +38,7 @@ class ProductAnalyticData with _$ProductAnalyticData {
categoryId: '',
categoryName: '',
quantitySold: 0,
revenue: 0.0,
revenue: 0,
averagePrice: 0.0,
orderCount: 0,
);