Text

data class Text<T>(val key: T, val label: String, val interactionSource: MutableInteractionSource? = null) : SegmentedControlItem<T> (source)

A text item that can be displayed in a segmented control.

Parameters

T

The type of the key used to uniquely identify each item.

Constructors

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

Properties

Link copied to clipboard

The interaction source for the item.

Link copied to clipboard
open override val key: T

Unique identifier for each item in the group list.

Link copied to clipboard

The label of the segmented control item.