debugDescribeChildren method
override
Returns a list of DiagnosticsNode objects describing this node's children.
Children that are offstage should be added with style
set to
DiagnosticsTreeStyle.offstage to indicate that they are offstage.
The list must not contain any null entries. If there are explicit null children to report, consider DiagnosticsNode.message or DiagnosticsProperty<Object> as possible DiagnosticsNode objects to provide.
Used by toStringDeep, toDiagnosticsNode and toStringShallow.
See also:
- RenderTable.debugDescribeChildren, which provides high quality custom descriptions for its child nodes.
Implementation
@override
List<DiagnosticsNode> debugDescribeChildren() {
final List<DiagnosticsNode> value = <DiagnosticsNode>[];
final Map<ChildType, SlotType> childToSlot = Map<ChildType, SlotType>.fromIterables(
_slotToChild.values,
_slotToChild.keys,
);
for (final ChildType child in children) {
_addDiagnostics(child, value, debugNameForSlot(childToSlot[child] as SlotType));
}
return value;
}