getSelectedIndexPaths method

List<int> getSelectedIndexPaths({
  1. bool sorted = false,
})

Get the list of selected cell 's index

拿到选择的cell的索引集合

Implementation

List<int> getSelectedIndexPaths({bool sorted = false}) {
  final List<int> res = List.from(selectedSet);
  if (sorted) {
    res.sort((d1, d2) {
      return d1.compareTo(d2);
    });
  }
  return res;
}