countBySeverity method

int countBySeverity(
  1. A11ySeverity severity
)

Implementation

int countBySeverity(A11ySeverity severity) =>
    violations.where((v) => v.severity == severity).length;