textPart

inline fun textPart(init: TextPartBuilder.() -> Unit): TextPart(source)

Creates a new TextPart using the DSL builder.

Example:

val textPart = textPart {
text = "Hello, world!"
}

Return

A new TextPart instance

Parameters

init

The lambda to configure the text part


Creates a new TextPart using the Java-friendly Consumer.

Return

A new TextPart instance

Parameters

init

The consumer to configure the text part