copyWith method

ScraperConfig copyWith({
  1. Duration? timeout,
  2. int? maxContentSize,
  3. Map<String, String>? headers,
  4. String? userAgent,
  5. bool? followRedirects,
  6. int? maxRedirects,
  7. bool? verifySSL,
  8. RetryConfig? retryConfig,
})

Copy with modifications

Implementation

ScraperConfig copyWith({
  Duration? timeout,
  int? maxContentSize,
  Map<String, String>? headers,
  String? userAgent,
  bool? followRedirects,
  int? maxRedirects,
  bool? verifySSL,
  RetryConfig? retryConfig,
}) {
  return ScraperConfig(
    timeout: timeout ?? this.timeout,
    maxContentSize: maxContentSize ?? this.maxContentSize,
    headers: headers ?? this.headers,
    userAgent: userAgent ?? this.userAgent,
    followRedirects: followRedirects ?? this.followRedirects,
    maxRedirects: maxRedirects ?? this.maxRedirects,
    verifySSL: verifySSL ?? this.verifySSL,
    retryConfig: retryConfig ?? this.retryConfig,
  );
}