handlePointerEvent method
- PointerEvent event
override
Dispatch an event to the targets found by a hit test on its position.
If the pointerEventSource is TestBindingEventSource.test, then the event is forwarded to GestureBinding.dispatchEvent as usual; additionally, down pointers are painted on the screen.
If the pointerEventSource is TestBindingEventSource.device, then the event, after being transformed to the local coordinate system, is forwarded to deviceEventDispatcher.
Implementation
@override
void handlePointerEvent(PointerEvent event) {
if (_testZone != null) {
_testZone!.runUnary<void, PointerEvent>(_handlePointerEvent, event);
} else {
_handlePointerEvent(event);
}
}