StageResult.skipped constructor

StageResult.skipped(
  1. String stageId,
  2. String reason
)

Create a skipped result.

Implementation

factory StageResult.skipped(String stageId, String reason) {
  final now = DateTime.now();
  return StageResult(
    stageId: stageId,
    status: StageStatus.skipped,
    error: reason,
    startedAt: now,
    completedAt: now,
  );
}