scrollToIndex

fun ResourcesScope.scrollToIndex(controller: LazyCollectionController, index: Int, offset: Dimen = 0.px)

Scroll the LazyCollection so that the child at the given index is fully visible. For an animated scroll use smoothScrollToIndex.

Parameters

controller

The controller for the LazyCollection being scrolled.

index

The index of the child to scroll to

offset

Attempt to offset the child by this distance from the start of the Collection.