onTabTap method
Implementation
void onTabTap(int index) {
_currentTabIndex = index;
tabIndexChanged.value = index;
if (!isStack) {
_pageController.animateToPage(
index,
duration: const Duration(milliseconds: 100),
curve: Curves.easeIn,
);
}
}