openUrl method
Open a URL and handle navigation based on registered link handlers
url The URL to be opened
If the URL matches any registered link handler's redirect paths, the corresponding onRedirect method will be invoked.
Implementation
void openUrl(String url) {
final uri = Uri.parse(url);
final path = _getValidPath(url, uri);
if (path.isEmpty) {
if (_enableLogger) {
debugPrint(
'LinkingServiceExt.openUrl: No valid path found for URL: $url'
' may be no matching link prefix in linkPrefixes: $_linkPrefixes',
);
}
return;
}
_linking(path, uri.queryParameters);
}