<div class='type'>Function</div>


<a id='references'></a>


<h2 id="snapto-targetvalue">snapTo</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
suspend fun <T> AnchoredDraggableState<T>.snapTo(targetValue: T)
```


Snap to a `targetValue` without any animation. If the `targetValue` is not in the set of anchors,
the `AnchoredDraggableState.currentValue` will be updated to the `targetValue` without updating
the offset.

#### Parameters

| | |
| --- | --- |
| targetValue | The target value of the animation |