copyWith method

ProxyValidationOptions copyWith({
  1. String? testUrl,
  2. int? timeout,
  3. bool? updateScore,
  4. bool? validateHttps,
  5. bool? validateSocks,
  6. bool? validateWebsockets,
})

Creates a copy of this ProxyValidationOptions with the given parameters

Implementation

ProxyValidationOptions copyWith({
  String? testUrl,
  int? timeout,
  bool? updateScore,
  bool? validateHttps,
  bool? validateSocks,
  bool? validateWebsockets,
}) {
  return ProxyValidationOptions(
    testUrl: testUrl ?? this.testUrl,
    timeout: timeout ?? this.timeout,
    updateScore: updateScore ?? this.updateScore,
    validateHttps: validateHttps ?? this.validateHttps,
    validateSocks: validateSocks ?? this.validateSocks,
    validateWebsockets: validateWebsockets ?? this.validateWebsockets,
  );
}