import 'package:charts_flutter_new/flutter.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:venderfoodyman/infrastructure/models/response/statistics_order_response.dart';

import '../../../../infrastructure/models/models.dart';

part 'statistics_state.freezed.dart';

@freezed
class StatisticsState with _$StatisticsState {
  const factory StatisticsState({
    @Default(false) bool isLoading,
    @Default(true) bool isRefresh,
    @Default([]) List<Series<OrdinalSales, String>> list,
    StatisticsOrder? listOfOrder,
    StatisticsResponse? countData,

  }) = _StatisticsState;

  const StatisticsState._();
}
