part of 'order_form_bloc.dart';

@freezed
class OrderFormState with _$OrderFormState {
  const factory OrderFormState.initial() = _Initial;
  const factory OrderFormState.loading() = _Loading;
  const factory OrderFormState.loaded({
    required Order order,
    @Default([]) List<OrderItem> selectedItems,
    @Default(0) int totalVoidOrRefund,
    @Default(false) bool isAllSelected,
  }) = _Loaded;
  const factory OrderFormState.success(Order order) = _Success;
  const factory OrderFormState.successMsg() = _SuccessMsg;
  const factory OrderFormState.error(String message) = _Error;
}
