select method
Selects the visible item with id.
Implementation
bool select(String id) {
final projected = _projectRows();
final index = projected.indexWhere(
(row) => row.item.id == id && row.item.selectable,
);
if (index < 0 || index == _cursor) return false;
_cursor = index;
_ensureCursorVisible(projected.length);
return true;
}