Proxy constructor
const
Proxy({
- required String ip,
- required int port,
- String? countryCode,
- String? country,
- bool isHttps = false,
- ProxyProtocol protocol = ProxyProtocol.http,
- String? anonymityLevel,
- String? region,
- String? isp,
- double? speed,
- int? latency,
- bool? supportsWebsockets,
- ProxyAuth? auth,
- ProxyScore? score,
- String? username,
- String? password,
Creates a new Proxy instance
Implementation
const Proxy({
required this.ip,
required this.port,
this.countryCode,
this.country,
this.isHttps = false,
this.protocol = ProxyProtocol.http,
this.anonymityLevel,
this.region,
this.isp,
this.speed,
this.latency,
this.supportsWebsockets,
this.auth,
this.score,
String? username,
String? password,
}) : assert(
(username == null && password == null) || auth == null,
'Cannot provide both username/password and auth',
);