selectFocusedItem method
T?
selectFocusedItem()
Selects the currently focused item. Returns the item if one was focused and selected, null otherwise.
Implementation
T? selectFocusedItem() {
final item = focusedItem;
if (item != null) {
selectItem(item);
return item;
}
return null;
}