setProxyOverride method

Future<void> setProxyOverride({
  1. required ProxySettings settings,
})

Sets ProxySettings which will be used by all WebViews in the app. URLs that match patterns in the bypass list will not be directed to any proxy. Instead, the request will be made directly to the origin specified by the URL. Network connections are not guaranteed to immediately use the new proxy setting; wait for the method to return before loading a page.

Supported Platforms/Implementations:

Implementation

Future<void> setProxyOverride({required ProxySettings settings}) async {
  Map<String, dynamic> args = <String, dynamic>{};
  args.putIfAbsent("settings", () => settings.toMap());
  return await _channel.invokeMethod('setProxyOverride', args);
}