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