dispatchEvent method

  1. @override
void dispatchEvent (PointerEvent event, HitTestResult result, { 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 result argument must not be null.

Implementation

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