validateTabSelection static method
- List<
SolidNavTab> tabs, - int selectedIndex
Validates if a list of tabs has valid indices.
Implementation
static bool validateTabSelection(List<SolidNavTab> tabs, int selectedIndex) {
return selectedIndex >= 0 && selectedIndex < tabs.length;
}