initState method

  1. @override
void initState()
override

Set the initial index.

Implementation

@override
void initState() {
  super.initState();
  _pageIndex = widget.initialPageIndex;
}