AppRouterState constructor

AppRouterState(
  1. String name,
  2. AppRoutes<AppRoute> _routes,
  3. List<Listenable> _watch, {
  4. AppRouterState? parent,
})

Implementation

AppRouterState(this.name, this._routes, this._watch, {this.parent}) {
  if(parent != null) {
    parent!._children.add(this);
    _setNewRoutePath(_root._current);
  }
  _watch.forEach((w) => w.addListener(_notifyListeners));
}