toggleMultipleItemsSelection method
void
toggleMultipleItemsSelection(
- BuildContext context,
- List<
T> selectionTargetItems, - bool areAlreadySelected
Implementation
void toggleMultipleItemsSelection(
BuildContext context,
List<T> selectionTargetItems,
bool areAlreadySelected,
) {
var blocc = bloc(context);
blocc.add(
areAlreadySelected
? BlocxCollectionEventDeselectMultipleItems(
items: selectionTargetItems)
: BlocxCollectionEventSelectMultipleItems(
items: selectionTargetItems),
);
}