onInitState method

void onInitState()

Implementation

void onInitState() {
  super.initState();
  currentIndex = widget.currentIndex;
}