currentSelection property

R? get currentSelection

The currently selected result, or null if the list is empty.

Implementation

R? get currentSelection => _results.isEmpty ? null : _results[_selectedIndex];