currentIndex property

int get currentIndex

The index of the currently active StatefulShellBranch.

Corresponds to the index in the branches field of StatefulShellRoute.

Implementation

int get currentIndex => widget.currentIndex;