selectedItem property

String get selectedItem

Gets the currently selected item label.

Implementation

String get selectedItem => _selectedItem;
set selectedItem (String item)

Updates the currently selected item label and notifies listeners.

Implementation

set selectedItem(String item) {
  _selectedItem = item;
  notifyListeners();
}