deselectCellAt method

void deselectCellAt({
  1. required List<int> indexPaths,
})

Deselect cells (You must pass SwipeActionCell.index attr to your SwipeActionCell

选中一个cell (注意!!!你必须把 index 参数传入cell

Implementation

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

  indexPaths.forEach((element) {
    selectedSet.remove(element);
  });
  selectedIndexPathsChangeCallback?.call(
      indexPaths, false, selectedSet.length);
  SwipeActionStore.getInstance().bus.fire(CellSelectedEvent(selected: false, controller: this));
}