copyWith method
Creates a copy of this result with the given fields replaced
Implementation
HeadlessBrowserResult copyWith({
bool? success,
String? html,
Map<String, dynamic>? data,
Uint8List? screenshot,
String? errorMessage,
int? statusCode,
int? elapsedMillis,
}) {
return HeadlessBrowserResult(
success: success ?? this.success,
html: html ?? this.html,
data: data ?? this.data,
screenshot: screenshot ?? this.screenshot,
errorMessage: errorMessage ?? this.errorMessage,
statusCode: statusCode ?? this.statusCode,
elapsedMillis: elapsedMillis ?? this.elapsedMillis,
);
}