resolve method
Where uri would take the app, without going there.
Used by handle to route, and by metro live:run deeplink to report
what a link resolves to, so both read one implementation.
Implementation
DeepLinkTarget resolve(Uri uri) {
final String path = _routePath(uri);
final bool registered = NyNavigator.instance.router
.routeNameMappingsContains(path);
return DeepLinkTarget(
path: path,
registered: registered,
target: registered ? path : (fallbackRoute ?? path),
queryParameters: Map<String, dynamic>.from(uri.queryParameters),
);
}