setFocusedIndex method
Sets focus to a specific index.
Implementation
void setFocusedIndex(int index) {
if (index >= -1 && index < _itemCount) {
_focusedIndex = index;
notifyListeners();
}
}
Sets focus to a specific index.
void setFocusedIndex(int index) {
if (index >= -1 && index < _itemCount) {
_focusedIndex = index;
notifyListeners();
}
}