setIndex method
Implementation
void setIndex(int value) {
if (value != currentIndex) {
onNotifyWithCallback(() {
currentIndex = value;
if (onTabChange != null) onTabChange?.call(currentIndex);
});
}
}
void setIndex(int value) {
if (value != currentIndex) {
onNotifyWithCallback(() {
currentIndex = value;
if (onTabChange != null) onTabChange?.call(currentIndex);
});
}
}