src/Valkyrja/Routing/RouteCollection.php
public function namedRoute(string $name): ? Route
    {
        return $this->route($this->namedRoutes[$name] ?? $name);
    }
public function namedRoute(string $name): ? Route
    {
        return $this->route($this->namedRoutes[$name] ?? $name);
    }
Get a named route.

@param string $name The name

@return null|Route
The route if found or null when no static route is
found for the path and method combination specified