describeElement method Null safety

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

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

Implementation

@override
DiagnosticsNode describeElement(String name, {DiagnosticsTreeStyle style = DiagnosticsTreeStyle.errorProperty}) {
  return DiagnosticsProperty<Element>(name, this, style: style);
}