onPressed method

void onPressed(
  1. int index
)
  • FOR CHANGING NAVIGATION BAR INDEX

Implementation

void onPressed(int index) {
  onChanged(index);
  notifyIndex.value = index;
}