describeWidget method Null safety

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

Returns a description of the Widget associated with the current build context.

Implementation

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