copyWith method

RunAttemptStatus copyWith({
  1. RunAttemptPhase? phase,
  2. String? error,
})

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