animateElevation

suspend fun ERROR CLASS: Symbol not found for Animatable<ERROR CLASS: Symbol not found for Dp, *>.animateElevation(target: ERROR CLASS: Symbol not found for Dp, from: ERROR CLASS: Symbol not found for Interaction?? = null, to: ERROR CLASS: Symbol not found for Interaction?? = null)

Animates the Dp value of this between from and Interactions, to target. The AnimationSpec used depends on the values for from and to.

Parameters

target

the Dp target elevation for this component, corresponding to the elevation desired for the to state.

from

the previous Interaction that was used to calculate elevation. null if there was no previous Interaction, such as when the component is in its default state.

to

the Interaction that this component is moving to, such as PressInteraction.Press when this component is being pressed. null if this component is moving back to its default state.