level property

  1. @override
DiagnosticLevel level

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

If ifEmpty is null and the value is an empty Iterable then level DiagnosticLevel.fine is returned in a similar way to how an ObjectFlagProperty handles when ifNull is null and the value is null.


DiagnosticLevel get level {
  if (ifEmpty == null && value != null && value!.isEmpty && super.level != DiagnosticLevel.hidden) {
    return DiagnosticLevel.fine;
  return super.level;