moveToNextItem method

bool moveToNextItem()

Moves focus to the next item.

Implementation

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

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