Text

data class Text(val label: String, val enabled: Boolean, val interactionSource: MutableInteractionSource? = null) : ToggleItem

Data class for ToggleItem.Text content.

Constructors

Link copied to clipboard
constructor(label: String, enabled: Boolean, interactionSource: MutableInteractionSource? = null)

Properties

Link copied to clipboard
open override val enabled: Boolean

boolean state determining if the ToggleItem.Text is enabled.

Link copied to clipboard
open override val interactionSource: MutableInteractionSource? = null

MutableInteractionSource representing the stream of Interactions for this component.

Link copied to clipboard

text label for the ToggleItem.Text.