part of 'order_loader_bloc.dart';

@freezed
class OrderLoaderEvent with _$OrderLoaderEvent {
  const factory OrderLoaderEvent.dateTimeRangeChange(
    DateTime startDate,
    DateTime endDate,
  ) = _DateTimeRangeChange;
  const factory OrderLoaderEvent.searchChange(String search) = _SearchChange;
  const factory OrderLoaderEvent.setSelectedOrder(Order order) =
      _SetSelectedOrder;
  const factory OrderLoaderEvent.getById(String id) = _GetById;
  const factory OrderLoaderEvent.fetched({
    @Default(false) bool isRefresh,
    required String status,
  }) = _Fetched;
}
