selectCellAt method

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

Select a cell (You must pass SwipeActionCell.index attr to your SwipeActionCell

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

Implementation

void selectCellAt({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.add(element);
  });
  selectedIndexPathsChangeCallback?.call(
      indexPaths, true, selectedSet.length);
  SwipeActionStore.getInstance().bus.fire(CellSelectedEvent(selected: true));
}