Icon

data class Icon(@DrawableRes val resource: Int, val contentDescription: String?, val alignment: Alignment.Vertical = Alignment.CenterVertically, val tint: Color? = null) : ListViewItemImage(source)

Icon is used to represent a leading visual icon in the list view item.

Constructors

Link copied to clipboard
constructor(@DrawableRes resource: Int, contentDescription: String?, alignment: Alignment.Vertical = Alignment.CenterVertically, tint: Color? = null)

Properties

Link copied to clipboard

The alignment of the icon.

Link copied to clipboard

The content description of the icon.

Link copied to clipboard

The icon resource to be displayed.

Link copied to clipboard
val tint: Color?

The tint color of the icon.