copyWith method
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,
);
}