selectAllItem method

void selectAllItem({
  1. required bool isSetToSelected,
})

Function to select or unselect all item

Implementation

void selectAllItem(
    {
    // Flag to set function mode to select all or unselect all
    required bool isSetToSelected}) {
  if (item.isEmpty) return;
  _selectItems(isSetToSelected, item);
  _updateState();
}