BlocxCollectionState<T extends BlocxBaseEntity> constructor

const BlocxCollectionState<T extends BlocxBaseEntity>({
  1. required List<T> list,
  2. required bool hasReachedEnd,
  3. required bool isLoadingNextPage,
  4. required bool isRefreshing,
  5. required bool isSearching,
  6. Set<String> selectedItemIds = const {},
  7. Set<String> beingSelectedItemIds = const {},
  8. Set<String> highlightedItemIds = const {},
  9. Set<String> beingRemovedItemIds = const {},
  10. Set<String> expandedItemIds = const {},
  11. dynamic additionalInfo,
  12. required bool shouldRebuild,
  13. required bool shouldListen,
})

Implementation

const BlocxCollectionState({
  required this.list,
  required this.hasReachedEnd,
  required this.isLoadingNextPage,
  required this.isRefreshing,
  required this.isSearching,
  this.selectedItemIds = const {},
  this.beingSelectedItemIds = const {},
  this.highlightedItemIds = const {},
  this.beingRemovedItemIds = const {},
  this.expandedItemIds = const {},
  this.additionalInfo,
  required super.shouldRebuild,
  required super.shouldListen,
});