item

abstract fun item(key: Any? = null, content: @Composable () -> Unit)

Adds a single item.

Parameters

key

A key which is unique among the items of the list. The state remembered by an item stays with its key, and the list keeps showing the same item when others are added or removed before it. Without a key, the position of the item is its key.