hasMarks static method

bool hasMarks(
  1. List<PlaybookStep> steps
)

Whether a step list contains screenshot() steps, including inside its scenes.

Implementation

static bool hasMarks(List<PlaybookStep> steps) => steps.any(
  (PlaybookStep step) =>
      step is PlaybookScreenshotStep ||
      (step is PlaybookGroupStep && hasMarks(step.steps ?? const [])),
);