RadialMenuItem

constructor(id: Int, icon: Painter, iconActive: Painter? = null, label: String = "", isActive: Boolean = false, badgeCount: Int = 0, badgeText: String? = null, contentDescription: String = label)(source)

Parameters

id

Unique identifier for this item, developer-defined.

icon

The default-state icon Painter.

iconActive

Optional active/toggled-state icon Painter (e.g. filled heart).

label

Human-readable label (used for accessibility and future label rendering).

isActive

Whether this item is currently in its "active" toggle state.

badgeCount

Badge count to display. 0 means no badge.

badgeText

Optional custom badge text (overrides badgeCount when non-null).

contentDescription

Accessibility description for screen readers.

Note on equality: RadialMenuItem is a data class, so equals() and hashCode() are auto-generated. However, since icon and iconActive are Painter instances (an interface), equality comparison for these fields depends on the specific Painter implementation. When using copy() or comparing items, be aware that two painters pointing to the same resource may not be considered equal.