getOriginalUrl method

Future<WebUri?> getOriginalUrl()

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:

Implementation

Future<WebUri?> getOriginalUrl() => platform.getOriginalUrl();