stopLoading method
Stops the WebView from loading.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.stopLoading)
- iOS WKWebView (Official API - WKWebView.stopLoading)
- macOS WKWebView (Official API - WKWebView.stopLoading)
- Web <iframe> but requires same origin (Official API - Window.stop)
- Windows WebView2 (Official API - ICoreWebView2.Stop)
- Linux WPE WebKit (Official API - webkit_web_view_stop_loading)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<void> stopLoading() => platform.stopLoading();