copyWith method

ScopeInfo copyWith({
  1. ScopePhase? phase,
})

Create a copy with updated phase.

Implementation

ScopeInfo copyWith({ScopePhase? phase}) {
  return ScopeInfo(
    id: id,
    name: name,
    phase: phase ?? this.phase,
    startedAt: startedAt,
    scope: scope,
  );
}