rememberQuantityPickerState

fun rememberQuantityPickerState(    initialQuantity: Int = 0,     minQuantity: Int = Int.MIN_VALUE,     maxQuantity: Int = Int.MAX_VALUE,     longPressQuantity: Int? = null): QuantityPickerState

Method used to create and remember during the recompositions the state for the QuantityPicker component

Return

the state as QuantityPickerState

Parameters

initialQuantity

The initial quantity selected

minQuantity

The minimum threshold quantity allowed

maxQuantity

The maximum threshold quantity allowed

longPressQuantity

The quantity to decrement or increment when the user long press (or double-clicked) the quantity buttons