deepCopy
fun deepCopy(key: Any? = this.key, label: String = this.label, selected: Boolean = this.selected, leadingItem: PillLeadingItem? = this.leadingItem, trailingIconId: Int? = this.trailingIconId, @IntRange(from = 0) badgeValue: Int? = this.badgeValue): PillGroupItem(source)
Creates a deep copy of the PillGroupItem with optional new values.
Return
A new PillGroupItem with the updated values.
Parameters
key
The new key for the item.
label
The new label for the item.
selected
The new selected state for the item.
leadingItem
The new leading item for the item.
trailingIconId
The new trailing icon ID for the item.
badgeValue
The new badge value for the item.