StepperState

class StepperState(initialValue: Int?, val range: IntRange, val step: Int)(source)

State holder for Stepper.Nudger and Stepper.NudgerForm.

Parameters

initialValue

Starting value, or null for an empty state.

range

Accepted value bounds. Buttons disable at the limits.

step

Amount added or subtracted per increment/decrement.

Constructors

Link copied to clipboard
constructor(initialValue: Int?, range: IntRange, step: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val step: Int
Link copied to clipboard
var value: Int?

Current value, or null when the stepper is empty.

Functions

Link copied to clipboard
fun decrement()
Link copied to clipboard
fun increment()