navigate method
Loads url with optional history replacement and extra headers.
This is the AndroidX WebViewCompat.navigate API. When the feature is
unavailable the call falls back to loadUrl.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewCompat.navigate):
- Requires WebViewFeature.NAVIGATION_LISTENER. Falls back to loadUrl otherwise.
Parameters - Officially Supported Platforms/Implementations:
url: all platformsreplaceHistory: all platformsheaders: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<void> navigate({
required WebUri url,
bool replaceHistory = false,
Map<String, String>? headers,
}) => platform.navigate(
url: url,
replaceHistory: replaceHistory,
headers: headers,
);