part of 'outlet_list_loader_bloc.dart';

@freezed
class OutletListLoaderState with _$OutletListLoaderState {
  const factory OutletListLoaderState({
    required List<Outlet> outlets,
    required Option<OutletFailure> failureOptionOutlet,
    String? search,
    bool? isActive,
    @Default(false) bool isFetching,
    @Default(false) bool hasReachedMax,
    @Default(1) int page,
  }) = _OutletListLoaderState;

  factory OutletListLoaderState.initial() =>
      OutletListLoaderState(outlets: [], failureOptionOutlet: none());
}
