Checks if the given absolute index is currently selected.
bool isSelected(int absoluteIndex) => absoluteIndex == _selectedIndex;