setProxy method

Future<String?> setProxy(
  1. String host,
  2. int proxy
)

Sets a proxy for network communication.

If your app requires network communication through a proxy server, use this method to configure the proxy settings.

  • host: The host of the proxy server.
  • proxy: The port number for the proxy server.

Returns a String indicating the result of the proxy configuration process.

Implementation

Future<String?> setProxy(String host, int proxy) {
  throw UnimplementedError('setProxy() has not been implemented.');
}