ItemDefaultContent

class ItemDefaultContent<T>(text: @Composable (item: T) -> String, supportingText: @Composable (item: T) -> String? = null, trailingSupportingText: @Composable (item: T) -> String? = null, icon: @Composable (item: T) -> Unit? = null) : DialogList.ItemContents<T>

the default content provider for a list item that will use the default composables to render the provided texts and icon

Parameters

text

the item text

supportingText

the optional supporting item text

Constructors

Link copied to clipboard
constructor(text: @Composable (item: T) -> String, supportingText: @Composable (item: T) -> String? = null, trailingSupportingText: @Composable (item: T) -> String? = null, icon: @Composable (item: T) -> Unit? = null)

Properties

Link copied to clipboard
open override val content: @Composable ColumnScope.(item: T) -> Unit

the main content of a list item

Link copied to clipboard
open override val iconContent: @Composable (item: T) -> Unit?

the icon of a list item

Link copied to clipboard
open override val trailingContent: @Composable ColumnScope.(item: T) -> Unit?

the trailing content of a list item