stopPropagation method

void stopPropagation()

Prevents processing of any event listeners in nodes subsequent to the current node in the event flow.

This method does not affect any event listeners in the current node (currentTarget). In contrast, the stopImmediatePropagation method prevents processing of event listeners in both the current node and subsequent nodes. Additional calls to this method have no effect. This method can be called in any phase of the event flow.

Implementation

void stopPropagation() {
  _isPropagationStopped = true;
}