selectItem method

void selectItem(
  1. String value
)

Select (and highlight) the item with the given value

Implementation

void selectItem(String value) {
  /// Select an item using its string value. This will trigger `onChanged` and close the overlay.
  _state?._selectByValue(value);
}