SpringEasingArgs

@Immutable
class SpringEasingArgs(val dampingRatio: Float, val stiffness: Float)

A data class to hold androidx.compose.animation.core.SpringSpec's args

Constructors

Link copied to clipboard
constructor(dampingRatio: Float, stiffness: Float)

Types

Link copied to clipboard
object Companion

The companion of SpringEasingArgs.

Properties

Link copied to clipboard
val dampingRatio: Float

damping ratio of the spring

Link copied to clipboard
val stiffness: Float

stiffness of the spring

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
@Stable
fun <T> SpringEasingArgs.toSpring(visibilityThreshold: T? = null): SpringSpec<T>

Utils function to convert SpringEasingArgs to SpringSpec

Link copied to clipboard
open override fun toString(): String