selectedItem property

T? get selectedItem

Implementation

T? get selectedItem => items.isNotEmpty ? items[selectedIndex].value : null;