openTab method

void openTab(
  1. String route,
  2. String title
)

Already open hai → sirf activate Naya → add + activate

Implementation

void openTab(String route, String title) {
  if (!_tabs.any((t) => t.route == route)) {
    _tabs.add(TabItem(route: route, title: title));
  }
  _activeRoute = route;
  notifyListeners();
}