validateTabSelection static method

bool validateTabSelection(
  1. List<SolidNavTab> tabs,
  2. 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;
}