onPointerDown method

  1. @override
void onPointerDown(
  1. PointerDownEvent event
)
override

Implementation

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