isFiltered method Null safety

bool isFiltered(
  1. DiagnosticLevel minLevel
)

Whether the diagnostic should be filtered due to its level being lower than minLevel.

If minLevel is DiagnosticLevel.hidden no diagnostics will be filtered. If minLevel is DiagnosticLevel.off all diagnostics will be filtered.

Implementation

bool isFiltered(DiagnosticLevel minLevel) => kReleaseMode || level.index < minLevel.index;