createFromUrl method
Receives a list of url segments and returns the stack parsed from them. The first segment in the list is matched against this route. If it does not correspond to this route, returns null.
A segment is a part of the url separated by slashes ('/'). The slashes are not included into the segment.
Implementation
@override
RouteNode<RouteValue>? createFromUrl(
UrlData url,
) {
if (url.segments.first == name.name) {
return createNode(
next: nextNodeFromUrl(url.copyWith(url.segments.skip(1))),
value: name,
);
}
return null;
}