Compose API Reference Compose UI Unit coerceAtMost Function Common inline fun Dp.coerceAtMost(maximumValue: Dp): Dp Ensures that this value is not greater than the specified maximumValue. Returns this value if it's less than or equal to the maximumValue or the maximumValue otherwise.
Compose API Reference Compose UI Unit coerceAtMost Function Common inline fun Dp.coerceAtMost(maximumValue: Dp): Dp Ensures that this value is not greater than the specified maximumValue. Returns this value if it's less than or equal to the maximumValue or the maximumValue otherwise.