Gets the index of the currently selected item.
See also: [method@Sidebar.get_selected_item].
a sidebar
index of the currently selected item