copyWith method
Returns a copy with a new phase or error.
Implementation
RunAttemptStatus copyWith({RunAttemptPhase? phase, String? error}) {
return RunAttemptStatus(
runId: runId,
issueId: issueId,
issueIdentifier: issueIdentifier,
attempt: attempt,
phase: phase ?? this.phase,
workspacePath: workspacePath,
startedAt: startedAt,
error: error ?? this.error,
);
}