createNode method
RouteNode<RouteValue>
createNode({
- RouteNode<
RouteValue> ? next, - T? value,
- Completer? popCompleter,
override
Implementation
@override
RouteNode createNode({
RouteNode? next,
T? value,
Completer? popCompleter,
}) {
value ??= defaultValue;
if (value == null) {
throw HyperError("No value provided for ValueRoute<$key>");
}
return ValueNode(
buildPage: (context) => buildPage(context, value!),
next: next,
value: value,
urlParser: urlParser,
route: this,
popCompleter: popCompleter,
);
}