clearProxyOverride method
Clears the proxy settings. Network connections are not guaranteed to immediately use the new proxy setting; wait for the method to return before loading a page.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - ProxyController.clearProxyOverride)
- iOS WKWebView 17.0+ (Official API - WKWebsiteDataStore.proxyConfigurations)
- macOS WKWebView 14.0+ (Official API - WKWebsiteDataStore.proxyConfigurations)
- Linux WPE WebKit (Official API - webkit_network_session_set_proxy_settings)
Use the PlatformProxyController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<void> clearProxyOverride() => platform.clearProxyOverride();