part of 'order_loader_bloc.dart';

@freezed
class OrderLoaderEvent with _$OrderLoaderEvent {
  const factory OrderLoaderEvent.rangeDateChanged(
    DateTime dateFrom,
    DateTime dateTo,
  ) = _RangeDateChanged;
  const factory OrderLoaderEvent.statusChanged(String status) = _StatusChanged;
  const factory OrderLoaderEvent.searchChanged(String search) = _SearchChanged;
  const factory OrderLoaderEvent.outletChanged(String? outletId) =
      _OutletChanged;
  const factory OrderLoaderEvent.fetched({@Default(false) bool isRefresh}) =
      _Fetched;
}
