decrement

fun decrement(step: Int, range: IntRange)(source)

Decrements value by step, clamped to range, and writes the result to the text field. When value is null, snaps to range.first without applying the step.

Parameters

step

The amount to subtract.

range

The range to clamp to.