parent property

RouteNode? get parent

Get parent route

Implementation

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

Attaches this node to a parent.

Called internally by SafeNestedRoute when registering child routes.

Implementation

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