describeElement method Null safety

DiagnosticsNode describeElement(
  1. String name,
  2. {DiagnosticsTreeStyle style = DiagnosticsTreeStyle.errorProperty}
)

Returns a description of an Element from the current build context.

Implementation

DiagnosticsNode describeElement(String name, {DiagnosticsTreeStyle style = DiagnosticsTreeStyle.errorProperty});