explicitChildNodes property Null safety

bool explicitChildNodes
final

Whether descendants of this widget are allowed to add semantic information to the SemanticsNode annotated by this widget.

When set to false descendants are allowed to annotate SemanticsNodes of their parent with the semantic information they want to contribute to the semantic tree. When set to true the only way for descendants to contribute semantic information to the semantic tree is to introduce new explicit SemanticsNodes to the tree.

If the semantics properties of this node include SemanticsProperties.scopesRoute set to true, then explicitChildNodes must be true also.

This setting is often used in combination with SemanticsConfiguration.isSemanticBoundary to create semantic boundaries that are either writable or not for children.

Implementation

final bool explicitChildNodes;