jumpTo method
Jumps to a specific index (clamped to valid range).
Implementation
void jumpTo(int index) {
if (_itemCount == 0) return;
_selectedIndex = index.clamp(0, _itemCount - 1);
_adjustScroll();
}
Jumps to a specific index (clamped to valid range).
void jumpTo(int index) {
if (_itemCount == 0) return;
_selectedIndex = index.clamp(0, _itemCount - 1);
_adjustScroll();
}