hasMarks static method
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 [])),
);