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