tryMatchRoute method
Implementation
FRouteMatch? tryMatchRoute(RouteInformation routeInformation,
[Set? checked]) {
checked ??= {};
if (checked.contains(navigatorKey)) {
return null;
}
checked.add(this.navigatorKey);
var match = routes.matchRoute(routeInformation.location!);
if (match != null) return FRouteMatch.page(match, this);
for (var child in _children.values) {
var childMatch = child.tryMatchRoute(routeInformation, checked);
if (childMatch != null) {
return childMatch;
}
}
if (hasParent) {
log.info(
"passToParent: [route=${routeInformation.location}] ${parent!.navigatorKey}");
return parent!.tryMatchRoute(routeInformation, checked);
}
return null;
}