onMoveEnd method

  1. @override
void onMoveEnd(
  1. OpsMoveEndDetails details
)
override

Implementation

@override
void onMoveEnd(OpsMoveEndDetails details) {
  widget.controller
    ..stopDeceleration()
    ..setDecelerationVelocity(details.velocity.pixelsPerSecond)
    ..computeScroll();
  if (widget.controller.touchEventListener != null) {
    var point = _getTouchValue(
        widget.controller.touchEventListener!.valueType(),
        details.globalPoint.dx,
        details.globalPoint.dy,
        details.localPoint.dx,
        details.localPoint.dy);
    widget.controller.touchEventListener?.onMoveEnd(point.x, point.y);
  }
}