int errorCount

Source

int get errorCount {
  return _warningCounts.keys
      .map((w) => options.asErrors.contains(w) ? _warningCounts[w] : 0)
      .reduce((a, b) => a + b);
}