part of 'order_loader_bloc.dart';

@freezed
class OrderLoaderEvent with _$OrderLoaderEvent {
  const factory OrderLoaderEvent.getByStatus(
    String status, {
    required DateTime dateFrom,
    required DateTime dateTo,
    int? limit,
    String? search,
  }) = _GetByStatus;
  const factory OrderLoaderEvent.getById(String id) = _GetById;
  const factory OrderLoaderEvent.loadMore(
    String status, {
    required DateTime dateFrom,
    required DateTime dateTo,
    String? search,
  }) = _LoadMore;
  const factory OrderLoaderEvent.refresh(String status) = _Refresh;
}
