reset method
Resets navigation to initial state.
Implementation
void reset({int initialIndex = 0}) {
if (_itemCount == 0) {
_focusedIndex = 0;
} else {
_focusedIndex = initialIndex.clamp(0, _itemCount - 1);
}
}
Resets navigation to initial state.
void reset({int initialIndex = 0}) {
if (_itemCount == 0) {
_focusedIndex = 0;
} else {
_focusedIndex = initialIndex.clamp(0, _itemCount - 1);
}
}