onSemanticsActionEvent property

SemanticsActionEventCallback? onSemanticsActionEvent

A callback that is invoked whenever the user requests an action to be performed on a semantics node.

This callback is used when the user expresses the action they wish to perform based on the semantics node supplied by updateSemantics.

The framework invokes this callback in the same zone in which the callback was set.


SemanticsActionEventCallback? get onSemanticsActionEvent => _onSemanticsActionEvent;
void onSemanticsActionEvent=(SemanticsActionEventCallback? callback)


set onSemanticsActionEvent(SemanticsActionEventCallback? callback) {
  _onSemanticsActionEvent = callback;
  _onSemanticsActionEventZone = Zone.current;