🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

scrollToIndex

Action to scroll a container to the index of one of its items.

scrollToIndex

Source set: Common
public fun SemanticsPropertyReceiver.scrollToIndex(
    label: String? = null,
    action: (Int) -> Boolean,
): Unit

Action to scroll a container to the index of one of its items.

The action should throw an IllegalArgumentException if the index is out of bounds.