cancel

suspend fun cancel(animated: Boolean = false)

Cancels an ongoing shake and resets its translation.

When animated is true, the translation animates back to its resting position.