toggleAllItemsSelection method

void toggleAllItemsSelection(
  1. BuildContext context
)

Implementation

void toggleAllItemsSelection(BuildContext context) {
  var blocc = bloc(context);
  blocc.add(
    areAllSelected(context)
        ? BlocxCollectionEventDeselectMultipleItems(items: blocc.list)
        : BlocxCollectionEventSelectMultipleItems(items: blocc.list),
  );
}