selectRowFromContentTap method

void selectRowFromContentTap(
  1. TreeRow row
)

Applies row selection for a tap on row content, when enabled.

Implementation

void selectRowFromContentTap(TreeRow row) {
  if (!_selectRowsOnTap || !isRowSelectable(row)) {
    return;
  }
  final pressedKeys = HardwareKeyboard.instance.logicalKeysPressed;
  selectRow(
    row,
    shiftPressed:
        pressedKeys.contains(LogicalKeyboardKey.shiftLeft) || pressedKeys.contains(LogicalKeyboardKey.shiftRight),
  );
}