onPointerUp method

  1. @override
void onPointerUp(
  1. PointerUpEvent event
)
override

Implementation

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