coerceAtMost
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. |
Ensures that this value is not greater than the specified [maximumValue].
inline fun Dp.coerceAtMost(maximumValue: Dp): Dp
Ensures that this value is not greater than the specified maximumValue.
this value if it's less than or equal to the maximumValue or the maximumValue otherwise. |