describeOwnershipChain method

  1. @override
DiagnosticsNode describeOwnershipChain(
  1. String name

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.


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));