dispatchEventRaw method

void dispatchEventRaw(
  1. Event event,
  2. EventDispatcher target,
  3. EventPhase eventPhase

Do not use the dispatchEventRaw method unless you want to override the way how events are dispatched for display list object. Please use dispatchEvent instead.


void dispatchEventRaw(
    Event event, EventDispatcher target, EventPhase eventPhase) {
  event._isPropagationStopped = false;
  event._isImmediatePropagationStopped = false;

  final eventStream = _eventStreams[event.type];
  if (eventStream == null) return;

  eventStream._dispatchEventInternal(event, target, eventPhase);