moveToNextItem method

bool moveToNextItem()

Moves focus to the next item in the list. Returns true if focus was moved, false if at the end.

Implementation

bool moveToNextItem() {
  if (_itemCount == 0) return false;

  if (_focusedIndex < _itemCount - 1) {
    _focusedIndex++;
    notifyListeners();
    return true;
  }
  return false;
}