Function

coerceAtLeast

Ensures that this value is not less than the specified minimumValue.

coerceAtLeast

Source set: Common
public inline fun Dp.coerceAtLeast(minimumValue: Dp): Dp

Ensures that this value is not less than the specified minimumValue.

Return

this value if it's greater than or equal to the minimumValue or the minimumValue otherwise.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: