compiled method
ShellRoute<P, S, D>
compiled({
- required String path,
- PathParams<
P> ? params, - SearchParams<
S> ? search, - required bool terminal,
- Iterable<
RouteNode> children = const <RouteNode>[],
Binds generated file-route configuration to this shell route.
Implementation
ShellRoute<P, S, D> compiled({
required String path,
PathParams<P>? params,
SearchParams<S>? search,
required bool terminal,
Iterable<RouteNode> children = const <RouteNode>[],
}) {
final compiledDefinition = definition.compiled(
path: path,
params: params,
search: search,
terminal: terminal,
children: children,
);
final page = indexPage;
return ShellRoute<P, S, D>._(
definition: compiledDefinition,
load: load,
build: build,
pending: pending,
error: error,
notFound: notFound,
indexPage: page == null
? null
: PageRoute<P, S, D>._(
definition: compiledDefinition,
load: load,
build: page.build,
page: page.page,
pending: page.pending,
error: page.error,
notFound: page.notFound,
),
);
}