reload method
Reloads the WebView.
NOTE for Web: if window.location.reload()
is not accessible inside the iframe, it will reload using the iframe src
attribute.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebView.reload)
- iOS (Official API - WKWebView.reload)
- MacOS (Official API - WKWebView.reload)
- Web (Official API - Location.reload)
- Windows (Official API - ICoreWebView2.Reload)
Implementation
@override
Future<void> reload() async {
Map<String, dynamic> args = <String, dynamic>{};
await channel?.invokeMethod('reload', args);
}