traversalChildIdentifier property

Object? traversalChildIdentifier
final

Provides an identifier for establishing parent-child relationships in the semantics traversal tree.

This property is used to create a logical parent-child relationship between semantics nodes that may not be directly connected in the widget tree. It's primarily used with OverlayPortal to ensure proper accessibility traversal order when overlay content needs to be semantically connected to its parent widget.

When a semantics node has a traversalChildIdentifier, it indicates that this node should be treated as a child of another node that has this same identifier as its traversalParentIdentifier. This allows assistive technologies to navigate the UI in the correct logical order.

The traversalChildIdentifier value may be duplicated across multiple semantics nodes. To establish one or more nodes as the traversal children of a parent node, assign this identifier the same value as the parent's traversalParentIdentifier.

Implementation

final Object? traversalChildIdentifier;