passes method

bool passes({
  1. SeoSeverity threshold = SeoSeverity.error,
})

Whether the site passes at threshold — nothing at that severity or worse.

Implementation

bool passes({SeoSeverity threshold = SeoSeverity.error}) =>
    !findings.any((f) => f.severity.index <= threshold.index);