debugGetCreatorChain method Null safety
- int limit
Returns a description of what caused this element to be created.
Useful for debugging the source of an element.
Implementation
String debugGetCreatorChain(int limit) {
final List<String> chain = <String>[];
Element? node = this;
while (chain.length < limit && node != null) {
chain.add(node.toStringShort());
node = node._parent;
}
if (node != null) {
chain.add('\u22EF');
}
return chain.join(' \u2190 ');
}