getOriginalUrl method
Gets the URL that was originally requested for the current page.
This is not always the same as the URL passed to InAppWebView.onLoadStart
because although the load for that URL has begun,
the current page may not have changed. Also, there may have been redirects resulting in a different URL to that originally requested.
NOTE for Web: it will return the current value of the iframe.src
attribute.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebView.getOriginalUrl)
- iOS
- MacOS
- Web
Implementation
Future<WebUri?> getOriginalUrl() {
throw UnimplementedError(
'getOriginalUrl is not implemented on the current platform');
}