setRowSelection method

void setRowSelection(
  1. LocalKey rowKey,
  2. bool selected
)

Implementation

void setRowSelection(LocalKey rowKey, bool selected) {
  var i = _rows.indexWhere((r) => r.key == rowKey);
  if (i > -1 && _rows[i].selected != selected) {
    _toggleRowSelection(i);
  }
}