activeIndex property

int get activeIndex

Active tab ka index (IndexedStack ke liye)

Implementation

int get activeIndex =>
    _activeRoute != null
        ? _tabs.indexWhere((t) => t.route == _activeRoute)
        : -1;