AppRouterState constructor
AppRouterState(
- String name,
- AppRoutes<
AppRoute> _routes, - List<
Listenable> _watch, { - 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));
}