PillGroupItem
constructor(key: Any?, label: String, selected: Boolean = false, leadingItem: PillLeadingItem? = null, trailingIconId: Int? = null, @IntRange(from = 0) badgeValue: Int? = null)
Creates a PillGroupItem with the provided parameters
constructor(key: Any?, label: String, @DrawableRes iconId: Int, selected: Boolean = false, iconPosition: IconPosition.Horizontal = IconPosition.Horizontal.Leading)
Deprecated (with error)
This constructor is deprecated, use the one with leadingItem or trailingIconId instead.
Replace with
PillGroupItem(key = key, label = label, selected = selected, leadingItem = if (iconPosition == IconPosition.Horizontal.Leading) PillLeadingItem.Icon(iconId) else null, trailingIconId = if (iconPosition == IconPosition.Horizontal.Trailing) iconId else null, badgeValue = null)Content copied to clipboard
Deprecated (with error)
This constructor is deprecated, use the one with leadingItem or trailingIconId instead.
Replace with
PillGroupItem(key = key, label = label, selected = selected, leadingItem = PillLeadingItem.Thumbnail(painter), trailingIconId = null, badgeValue = null)Content copied to clipboard