setAsSystemProxy method

Future<void> setAsSystemProxy(
  1. ProxyTypes types,
  2. String url,
  3. int port
)

set system proxy

Implementation

Future<void> setAsSystemProxy(ProxyTypes types, String url, int port) async {
  switch (Platform.operatingSystem) {
    case "windows":
      await _setAsSystemProxyWindows(types, url, port);
      break;
    case "linux":
      _setAsSystemProxyLinux(types, url, port);
      break;
    case "macos":
      await _setAsSystemProxyMacos(types, url, port);
      break;
  }
}