literalText

inline fun literalText(baseText: String? = null, builder: LiteralTextBuilder.() -> Unit = { }): MutableComponent(source)

Opens a LiteralTextBuilder.

Parameters

baseText

the text you want to begin with, it is okay to leave this empty or null

builder

the builder which can be used to set the style and add child text components