selectIndex method

void selectIndex(
  1. int index
)

Select (and highlight) the item at the given original index (index in the items list)

Implementation

void selectIndex(int index) {
  /// Select an item using its original index in the `items` list.
  /// This will also trigger `onChanged` and close the overlay.
  _state?._selectByIndex(index);
}