onTap method

dynamic onTap(
  1. int index
)

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;
  });
}