onPointerDown method
Implementation
@override
void onPointerDown(PointerDownEvent event) {
if (onTapDown != null) {
final localPosition = event.localPosition.toVector2();
onTapDown?.call(
this,
localPosition,
camera.screenToWorld(localPosition),
);
}
super.onPointerDown(event);
}