onTap method
Handle the tap event
Implementation
onTap(int index) {
if (reset.containsKey(index) && reset[index] == true) {
if (navigatorKeys.containsKey(index)) {
navigatorKeys[index] = UniqueKey();
}
reset[index] = false;
}
setState(() {
currentIndex = index;
});
}