flutter_bloc_list_manager library
Classes
- AddCondition
- Dispatched to add the requested property value pair to the list of conditions that are currently active.
- ConditionsInitialized
- ConditionsUninitialized
- State when available conditions have yet to be generated. This will generally happen if the source bloc has not yet emitted a state containing items to process.
-
FilterConditionsBloc<
T extends ItemSourceState< ItemClassWithAccessor> > -
Attaches to the provided
_sourceBloc
in order to dynamically generate groupings of available conditions that correspond to the provided_filterProperties
. - FilterConditionsEvent
- Base FilterConditionsEvent for extension.
- FilterConditionsState
- Base FilterConditionsState for extension.
- ItemClassWithAccessor
- Flutter cannot use the dart mirroring packages, so the class used to store individual items in the list must have a prop accessor for any data that needs to be accessed dynamically.
- ItemEmptyState
- State corresponding to no items matching the active conditions or search query.
-
ItemListBloc<
I extends ItemClassWithAccessor, T extends ItemSourceState< ItemClassWithAccessor> > -
Attaches to the provided
_filterConditionsBloc
,_searchQueryCubit
, and_sourceBloc
and uses supplied_searchProperties
in order to generate a list of items that should be rendered to the UI. - ItemListState
- Base FilterConditionsState for extension.
-
ItemResults<
I extends ItemClassWithAccessor> - State containing the items that have been filtered and searched according to the active conditions and search query.
-
ItemSourceState<
I extends ItemClassWithAccessor> - The state on the source bloc that contains the actual items to be filtered and searched. This allows the source bloc to have multiple states that it can manage internally.
-
ListManager<
I extends ItemClassWithAccessor, T extends ItemSourceState< ItemClassWithAccessor> , B extends Bloc> -
Intended to be the main entry point and the only widget one should
ever construct when using this package. UI needing to consume
the child blocs should do so via traditional
BlocBuilder
implementations. - NoSourceItems
- State corresponding to no items received from the source bloc.
- RemoveCondition
- Dispatched to remove the requested property value pair from the list of conditions that are currently active.
- SearchQueryCubit
- Cubit that acts as a holder for the current search query.
Enums
- FilterMode
- Available filter modes that can be attached to a condition key.