setCurrentCellPosition method

  1. @override
void setCurrentCellPosition(
  1. PlutoGridCellPosition? cellPosition, {
  2. bool notify = true,
})
inherited

Implementation

@override
void setCurrentCellPosition(
  PlutoGridCellPosition? cellPosition, {
  bool notify = true,
}) {
  if (currentCellPosition == cellPosition) {
    return;
  }

  if (cellPosition == null) {
    clearCurrentCell(notify: false);
  } else if (isInvalidCellPosition(cellPosition)) {
    return;
  }

  _state._currentCellPosition = cellPosition;

  notifyListeners(notify, setCurrentCellPosition.hashCode);
}