copyWith method

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

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,
  bool? logErrors,
  bool? categorizeErrors,
}) {
  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,
    logErrors: logErrors ?? this.logErrors,
    categorizeErrors: categorizeErrors ?? this.categorizeErrors,
  );
}