stopImmediatePropagation method

void stopImmediatePropagation()

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

This method takes effect immediately, and it affects event listeners in the current node. In contrast, the stopPropagation method doesn't take effect until all the event listeners in the current node finish processing.

Implementation

void stopImmediatePropagation() {
  _isPropagationStopped = true;
  _isImmediatePropagationStopped = true;
}