copyWith method
Returns a copy of the report for a specific target.
Implementation
TargetReport copyWith({
String? label,
bool? success,
BigInt? latencyMs,
String? error,
bool? isEssential,
}) {
return TargetReport(
label: label ?? this.label,
success: success ?? this.success,
latencyMs: latencyMs ?? this.latencyMs,
error: error ?? this.error,
isEssential: isEssential ?? this.isEssential,
);
}