disable<T> static method

void disable<T>(
  1. BuildContext context
)

disable the action mode, this automatically deselect all selected items

Implementation

static void disable<T>(BuildContext context) {
  Provider.of<ItemsController<T>>(context, listen: false).disableActionMode();
}