copyWith method
Implementation
TargetResult copyWith({String? artifact, String? logPath}) => TargetResult(
client: client,
target: target,
success: success,
skipped: skipped,
version: version,
duration: duration,
artifact: artifact ?? this.artifact,
error: error,
cause: cause,
logPath: logPath ?? this.logPath,
);