SemanticsData getSemanticsData()

Returns a summary of the semantics for this node.

If this node has mergeAllDescendantsIntoThisNode, then the returned data includes the information from this node's descendants. Otherwise, the returned data matches the data on this node.

Source

SemanticsData getSemanticsData() {
  int flags = _flags;
  int actions = _actions;
  String label = _label;

  if (mergeAllDescendantsIntoThisNode) {
    _visitDescendants((SemanticsNode node) {
      flags |= node._flags;
      actions |= node._actions;
      if (node.label.isNotEmpty) {
        if (label.isEmpty)
          label = node.label;
        else
          label = '$label\n${node.label}';
      }
      return true;
    });
  }

  return new SemanticsData(
    flags: flags,
    actions: actions,
    label: label,
    rect: rect,
    transform: transform
  );
}