ErrorProcessor constructor

ErrorProcessor(
  1. String code, [
  2. DiagnosticSeverity? severity
])

Create an error processor that assigns errors with this code the given severity.

If severity is null, matching errors will be filtered.

Implementation

ErrorProcessor(String code, [this.severity]) : code = code.toLowerCase();