icon()
Sets the icon to display alongside the text.
icon(
icon: BindingOrValue<
UIIconResource | UIIconResource.IconName | undefined
>,
iconStyle?: BindingOrValue<UIText.IconStyle> | number,
): this;
Parameters
- icon — An icon resource, an icon name, or a binding.
- iconStyle — Styling options for the icon, or only the icon size in pixels.
Return value
The builder instance for chaining.
Related
class TextBuilder static
A builder class for creating UIText instances.
