withPage method
Attaches the page rendered at this shell's own location.
Implementation
ShellRoute<P, S, D> withPage(PageRoute<P, S, D> page) {
final routeLoader = page.load ?? load;
return ShellRoute<P, S, D>._(
definition: definition,
load: routeLoader,
build: build,
pending: pending,
error: error,
notFound: notFound,
indexPage: PageRoute<P, S, D>._(
definition: definition,
load: routeLoader,
build: page.build,
page: page.page,
pending: page.pending,
error: page.error,
notFound: page.notFound,
),
);
}