deselectAll method

void deselectAll()

deselect all cell

取消选择所有的cell

Implementation

void deselectAll() {
  assert(
      isEditing.value,
      "Please call method :selectCellAt(index)  when you are in edit mode\n"
      "请在编辑模式打开的情况下调用 selectCellAt(index)");

  final List<int> deselectedList = selectedSet.toList();
  selectedSet.clear();
  selectedIndexPathsChangeCallback?.call(
      deselectedList, false, selectedSet.length);
  SwipeActionStore.getInstance().bus.fire(CellSelectedEvent(selected: false, controller: this));
}