selectedIndex property

num get selectedIndex

Returns the index of the first selected item, if any, or −1 if there is no selected item.

Can be set, to change the selection.

MDN Reference

Implementation

_i2.num get selectedIndex => _i4.getProperty(
      this,
      'selectedIndex',
    );
set selectedIndex (num value)

Implementation

set selectedIndex(_i2.num value) {
  _i4.setProperty(
    this,
    'selectedIndex',
    value,
  );
}