switchChild method

void switchChild(
  1. int index
)

Navigates to the child at the given index.

Implementation

void switchChild(int index) {
  setState(() {
    _currentIndex = index;
  });
}