describeOwnershipChain method Null safety

  1. @override
DiagnosticsNode describeOwnershipChain(
  1. String name
)
override

Adds a description of the ownership chain from a specific Element to the error report.

The ownership chain is useful for debugging the source of an element.

Implementation

@override
DiagnosticsNode describeOwnershipChain(String name) {
  // TODO(jacobr): make this structured so clients can support clicks on
  // individual entries. For example, is this an iterable with arrows as
  // separators?
  return StringProperty(name, debugGetCreatorChain(10));
}