copy

open fun copy(icon: String? = this.icon, label: String? = this.label, color: String? = this.color, action: String? = this.action): Decorator

Creates a copy of this decorator, optionally overriding specific properties.

Return

A new Decorator instance with the updated values.

Parameters

icon

The new icon name.

label

The new label text.

color

The new hex color string.

action

The new action identifier.