parent property

RouteNode<Object?>? get parent

Get parent route

Implementation

RouteNode<Object?>? get parent => _parent;
  1. @protected
set parent (RouteNode<Object?>? parent)

Attaches this node to a parent.

Called internally by SafeNestedRoute when registering child routes.

Implementation

@protected
set parent(RouteNode<Object?>? parent) {
  if (_parent != null) throw Exception();
  _parent = parent;
}