part of 'history_order_bloc.dart';

enum HistoryOrderStateStatus { initial, loading, loaded, error }

@freezed
class HistoryOrderState with _$HistoryOrderState {
  // const factory HistoryOrderState.initial() = _Initial;
  // const factory HistoryOrderState.loading() = _Loading;
  // const factory HistoryOrderState.loaded(HistoryOrderResponseModel orders) = _Loaded;
  // const factory HistoryOrderState.error(String message) = _Error;
  const factory HistoryOrderState({
    @Default(HistoryOrderStateStatus.initial) HistoryOrderStateStatus status,
    @Default(null) HistoryOrderResponseModel? orders,
    @Default('') String errorMessage,
  }) = _HistoryOrderState;

}
