Text

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

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

MutableInteractionSource representing the stream of interactions for this component.

Link copied to clipboard

text label for the ToggleItem.Text.