part of 'outlet_loader_bloc.dart';

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

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