focusItem

suspend fun focusItem(itemIndex: Int, animateScroll: Boolean = false, scrollOffset: Int = 0, skipScroll: Boolean = false)

Focuses on the item at the specified index within the lazy list.

Parameters

itemIndex

The index of the item to focus on.

animateScroll

Whether to animate the scroll to the focused item.

scrollOffset

The scroll offset for the focused item.

skipScroll

Whether to skip the scroll to the focused item.