jumpTo method

void jumpTo(
  1. int index
)

Jumps to a specific index (clamped to valid range).

Implementation

void jumpTo(int index) {
  if (_itemCount == 0) return;
  _focusedIndex = index.clamp(0, _itemCount - 1);
}