onPanEnd method

void onPanEnd(
  1. DragEndDetails details
)

Implementation

void onPanEnd(DragEndDetails details) {
  if (lastTouchPosition != null) {
    widgetChannel?.send(<String, dynamic>{
      "event": "panEnd",
      "widgetId": widget.valueKey,
      "x": lastTouchPosition!.dx,
      "y": lastTouchPosition!.dy,
      "vx": details.velocity.pixelsPerSecond.dx,
      "vy": details.velocity.pixelsPerSecond.dy,
    });
  }
  Plotline.plotlineDebugLog("Pan end on ${widget.valueKey} ${details}");
}