reload method
Reloads the WebView.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.reload)
- iOS WKWebView (Official API - WKWebView.reload)
- macOS WKWebView (Official API - WKWebView.reload)
- Web <iframe> but requires same origin (Official API - Location.reload):
- if
window.location.reload()is not accessible inside the iframe, it will reload using the iframesrcattribute.
- if
- Windows WebView2 (Official API - ICoreWebView2.Reload)
- Linux WPE WebKit (Official API - webkit_web_view_reload)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<void> reload() => platform.reload();