NativeProxyReader class abstract final

A class that manages custom proxy settings for Flutter applications.

This class provides functionality to set up and manage a proxy server configuration, including the ability to enable/disable the proxy and handle custom certificates.

Example usage:

final proxy = CustomProxy(ipAddress: '192.168.1.1', port: 8080);
proxy.enable(); // Enables the proxy
proxy.disable(); // Disables the proxy

You can also create a proxy instance from a string:

final proxy = CustomProxy.fromString(proxy: '192.168.1.1:8080');

The class supports:

  • Setting custom IP address and port
  • Enabling/disabling proxy settings
  • Optional bad certificate handling
  • String representation of proxy settings

Note: When allowBadCertificates is set to true, it may pose security risks and should be used with caution, especially in production environments.

Annotations

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

proxySetting Future<ProxySetting>
Get the proxy settings from the native platform.
no setter