onMoveEnd method
void
onMoveEnd(
- 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);
}
}