level property

DiagnosticLevel level
override

Priority level of the diagnostic used to control which diagnostics should be shown and filtered.

If ifEmpty is null and the value contains no non-null entries, then level DiagnosticLevel.hidden is returned.

Implementation

@override
DiagnosticLevel get level {
  if (!_hasNonNullEntry() && ifEmpty == null)
    return DiagnosticLevel.hidden;
  return super.level;
}