Proxy constructor

const Proxy({
  1. required String ip,
  2. required int port,
  3. String? countryCode,
  4. String? country,
  5. bool isHttps = false,
  6. ProxyProtocol protocol = ProxyProtocol.http,
  7. String? anonymityLevel,
  8. String? region,
  9. String? isp,
  10. double? speed,
  11. int? latency,
  12. bool? supportsWebsockets,
  13. ProxyAuth? auth,
  14. ProxyScore? score,
  15. String? username,
  16. 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',
     );