sendSemanticsEvent method

void sendSemanticsEvent(
  1. SemanticsEvent semanticsEvent
)

Sends a SemanticsEvent associated with this render object's SemanticsNode.

If this render object has no semantics information, the first parent render object with a non-null semantic node is used.

If semantics are disabled, no events are dispatched.

See SemanticsNode.sendEvent for a full description of the behavior.

Implementation

void sendSemanticsEvent(SemanticsEvent semanticsEvent) {
  if (owner!.semanticsOwner == null) {
    return;
  }
  if (_semantics != null && !_semantics!.isMergedIntoParent) {
    _semantics!.sendEvent(semanticsEvent);
  } else if (parent != null) {
    parent!.sendSemanticsEvent(semanticsEvent);
  }
}