setIndex method

void setIndex(
  1. int index
)

Implementation

void setIndex(int index) {
  var notifier = indexMap[currentTabIndex];
  if (notifier == null) {
    indexMap[currentTabIndex] = ValueNotifier<int>(index);
  } else {
    notifier.value = index;
  }
}