isSelected method

bool isSelected(
  1. int absoluteIndex
)

Checks if the given absolute index is currently selected.

Implementation

bool isSelected(int absoluteIndex) => absoluteIndex == _selectedIndex;