withDecoration

infix fun Style.withDecoration(decoration: TextDecoration): @NotNull Style

Adds a text decoration to this style.

Return

The style with the applied decoration

Parameters

decoration

The text decoration to apply


infix fun Style.withDecoration(decoration: Collection<TextDecoration>): @NotNull Style

Adds multiple text decorations to this style.

Return

The style with the applied decorations

Parameters

decoration

The collection of text decorations to apply