withChildren method
Returns a copy with children attached to the same definition.
Implementation
AppRoute<P, S, D> withChildren(Iterable<RouteNode> children) =>
AppRoute<P, S, D>._(
path: path,
params: params,
search: search,
metadata: metadata,
terminal: terminal,
children: children,
identity: identity,
capabilities: _capabilities,
);