performActionAt method

void performActionAt (Offset position, SemanticsAction action, [ dynamic args ])

Asks the SemanticsNode at the given position to perform the given action.

If the SemanticsNode has not indicated that it can perform the action, this function does nothing.

If the given action requires arguments they need to be passed in via the args parameter.

Implementation

void performActionAt(Offset position, SemanticsAction action, [dynamic args]) {
  assert(action != null);
  final SemanticsNode node = rootSemanticsNode;
  if (node == null)
    return;
  final _SemanticsActionHandler handler = _getSemanticsActionHandlerForPosition(node, position, action);
  if (handler != null)
    handler(args);
}