handleTap method Null safety

  1. @override
void handleTap(
  1. RowColumnIndex rowColumnIndex
)
override

Processes the selection operation when tap a cell.

Implementation

@override
void handleTap(RowColumnIndex rowColumnIndex) {
  final DataGridConfiguration dataGridConfiguration =
      _dataGridStateDetails!();
  _pressedRowColumnIndex = rowColumnIndex;
  if (dataGridConfiguration.selectionMode == SelectionMode.none) {
    return;
  }

  final RowColumnIndex previousRowColumnIndex = RowColumnIndex(
      dataGridConfiguration.currentCell.rowIndex,
      dataGridConfiguration.currentCell.columnIndex);
  if (!dataGridConfiguration.currentCell
      ._handlePointerOperation(dataGridConfiguration, rowColumnIndex)) {
    return;
  }

  _processSelection(
      dataGridConfiguration, rowColumnIndex, previousRowColumnIndex);
}