Proxy constructor

const Proxy({
  1. required String ip,
  2. required int port,
  3. String? countryCode,
  4. bool isHttps = false,
  5. ProxyProtocol protocol = ProxyProtocol.http,
  6. String? anonymityLevel,
  7. String? region,
  8. String? isp,
  9. double? speed,
  10. bool? supportsWebsockets,
  11. ProxyAuth? auth,
  12. ProxyScore? score,
  13. String? username,
  14. String? password,
})

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',
     );