currentSelectingPositionList property

  1. @override
List<PlutoGridSelectingCellPosition> currentSelectingPositionList
inherited

Position list of currently selected. Only valid in PlutoGridSelectingMode.cell.

stateManager.currentSelectingPositionList.forEach((element) {
  final cellValue = stateManager.rows[element.rowIdx].cells[element.field].value;
});

Implementation

@override
List<PlutoGridSelectingCellPosition> get currentSelectingPositionList {
  if (currentCellPosition == null || currentSelectingPosition == null) {
    return [];
  }

  switch (selectingMode) {
    case PlutoGridSelectingMode.cell:
      return _selectingCells();
    case PlutoGridSelectingMode.horizontal:
      return _selectingCellsHorizontally();
    case PlutoGridSelectingMode.row:
    case PlutoGridSelectingMode.none:
      return [];
  }
}