Decorator
fun Decorator(icon: String? = null, label: String? = null, color: String? = null, action: String? = null): Decorator
Creates a new Decorator instance with the specified properties.
Return
A new Decorator backed by a mutable map.
Parameters
icon
Optional icon name (e.g. "add", "print") for Material Icons.
label
Optional text label.
color
Optional hex color string (e.g. "#459842") for the decorator appearance.
action
Custom event name emitted to the SDK consumer when the decorator is tapped.
Creates a new Decorator instance from an existing mutable map.
Return
A new Decorator backed by the given map.
Parameters
map
The backing mutable map containing decorator properties.