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)