withChildren method

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

Returns a copy with children attached to the route definition.

Implementation

PageRoute<P, S, D> withChildren(Iterable<RouteNode> children) =>
    PageRoute<P, S, D>._(
      definition: definition.withChildren(children),
      load: load,
      build: build,
      page: page,
      pending: pending,
      error: error,
      notFound: notFound,
    );