shake

fun Modifier.shake(    enabled: Boolean = true,     fromLeft: Boolean = true,     rotation: Float = 3.0f,     animation: DurationBasedAnimationSpec<Float> = tween(200, easing = LinearEasing),     infiniteTransition: InfiniteTransition): Modifier

Makes a view shake enabled is the view should shake fromLeft if the view should start the shake from the left, else it starts from the right infiniteTransition