rememberMessagesLazyListState
fun rememberMessagesLazyListState(initialFirstVisibleItemIndex: Int = 0, initialFirstVisibleItemScrollOffset: Int = 0, messageOffsetHandler: MessagesLazyListState.MessageOffsetHandler = MessagesLazyListState.defaultOffsetHandler): MessagesLazyListState
Creates a MessagesLazyListState that is remembered across compositions. Changes to the provided initial values will not result in the state being recreated or changed in any way if it has already been created.
Parameters
initialFirstVisibleItemIndex
the initial value for LazyListState.firstVisibleItemIndex inside MessagesLazyListState.
initialFirstVisibleItemScrollOffset
the initial value for LazyListState.firstVisibleItemScrollOffset inside MessagesLazyListState.