dispatchEvent method

  1. @override
void dispatchEvent (PointerEvent event, HitTestResult hitTestResult, { TestBindingEventSource source: TestBindingEventSource.device })
override

Dispatch an event to a hit test result's path.

This sends the given event to every HitTestTarget in the entries of the given HitTestResult, and catches exceptions that any of the handlers might throw. The hitTestResult argument may only be null for PointerHoverEvent, PointerAddedEvent, or PointerRemovedEvent events.

Implementation

@override
void dispatchEvent(
  PointerEvent event,
  HitTestResult hitTestResult, {
  TestBindingEventSource source = TestBindingEventSource.device,
}) {
  assert(source == TestBindingEventSource.test);
  super.dispatchEvent(event, hitTestResult);
}