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