showNextTab method

void showNextTab()

Implementation

void showNextTab() {
  if (index == -1) return;
  int i = index + 1;
  if (i >= tabs.length) i = 0;
  index = i;
}