withChildren method

ServerRoute<P, S, D> withChildren(
  1. Iterable<RouteNode> children
)

Returns a copy with children attached to the shared identity.

Implementation

ServerRoute<P, S, D> withChildren(Iterable<RouteNode> children) =>
    ServerRoute<P, S, D>._(
      definition: definition.withChildren(children),
      load: load,
      middleware: middleware,
      handlers: handlers,
    );