rememberFlickToDismissState

fun rememberFlickToDismissState(dismissThresholdRatio: Float = 0.2f, rotateOnDrag: Boolean = true, rubberBandingSpec: FlickToDismissState.RubberBandingSpec = RubberBandingSpec(resistanceFactor = 2f)): FlickToDismissState

Create a FlickToDismissState that can be used with FlickToDismiss().

Parameters

dismissThresholdRatio

Minimum distance the user's finger should move as a fraction of the content's height after which it can be dismissed.

rotateOnDrag

When enabled, a subtle rotation is applied to the content while its being dragged.