selected property

int selected

The current selected item index.

Returns:

  • The current selected item index if the controller has clients (attached).
  • -1 if the controller has no clients (not attached).

Implementation

int get selected => _hasClients ? _current : -1;