part of 'order_loader_bloc.dart';

@freezed
class OrderLoaderState with _$OrderLoaderState {
  const factory OrderLoaderState.initial() = _Initial;
  const factory OrderLoaderState.loading() = _Loading;
  const factory OrderLoaderState.loaded({
    required List<Order> orders,
    required int totalOrder,
    required bool hasReachedMax,
    required int currentPage,
    required bool isLoadingMore,
  }) = _Loaded;
  const factory OrderLoaderState.error(String message) = _Error;
  const factory OrderLoaderState.loadedDetail(Order order) = _LoadedDetail;
}
