debugListChildrenInOrder method

List<SemanticsNode> debugListChildrenInOrder(
  1. DebugSemanticsDumpOrder childOrder
)

Returns the list of direct children of this node in the specified order.

Implementation

List<SemanticsNode> debugListChildrenInOrder(DebugSemanticsDumpOrder childOrder) {
  if (_children == null) {
    return const <SemanticsNode>[];
  }

  return switch (childOrder) {
    DebugSemanticsDumpOrder.inverseHitTest => _children!,
    DebugSemanticsDumpOrder.traversalOrder => _childrenInTraversalOrder(),
  };
}