switchChild method
Navigates to the child at the given index.
Implementation
void switchChild(int index) {
setState(() {
_currentIndex = index;
});
}
Navigates to the child at the given index.
void switchChild(int index) {
setState(() {
_currentIndex = index;
});
}