deleteCellAt method

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

This method is called of sync internal data model. You still need to call setState after calling this method

这个方法只是为了更新内部数据源,你仍然需要在调用这个方法之后 去调用 setState 来更新你自己的数据源

Implementation

void deleteCellAt({required List<int> indexPaths}) {
  indexPaths.forEach((element) {
    selectedSet.remove(element);
  });
}