count method

int count(
  1. Severity severity
)

Number of findings with severity.

Implementation

int count(Severity severity) =>
    findings.where((f) => f.severity == severity).length;