getVRouteFromRoutes method
VRoute?
getVRouteFromRoutes(
- VPathRequestData vPathRequestData, {
- required List<
VRouteElement> routes, - required VPathMatch vPathMatch,
- required bool parentCanPop,
Searches for a valid VRoute by asking VRouteElements is routes
if they can form a valid VRoute
Implementation
VRoute? getVRouteFromRoutes(
VPathRequestData vPathRequestData, {
required List<VRouteElement> routes,
required VPathMatch vPathMatch,
required bool parentCanPop,
}) {
for (var vRouteElement in routes) {
final childVRoute = vRouteElement.buildRoute(
vPathRequestData,
parentVPathMatch: vPathMatch,
parentCanPop: parentCanPop,
);
if (childVRoute != null) return childVRoute;
}
}