debugDescribeChildren method

  1. @override
List<DiagnosticsNode> debugDescribeChildren ({DebugSemanticsDumpOrder childOrder: DebugSemanticsDumpOrder.inverseHitTest })
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 new DiagnosticsNode.message or DiagnosticsProperty<Object> as possible DiagnosticsNode objects to provide.

See also:

Used by toStringDeep, toDiagnosticsNode and toStringShallow.

Implementation

@override
List<DiagnosticsNode> debugDescribeChildren({ DebugSemanticsDumpOrder childOrder = DebugSemanticsDumpOrder.inverseHitTest }) {
  return debugListChildrenInOrder(childOrder)
    .map<DiagnosticsNode>((SemanticsNode node) => node.toDiagnosticsNode(childOrder: childOrder))
    .toList();
}