buildMessages
inline fun buildMessages(container: MutableList<Message.Element> = mutableListOf(), block: MessagesBuilder.() -> Unit): Messages(source)
Builds a list of Messages using the provided container and block.
Return
The built Messages object.
Parameters
container
The mutable list that contains the message elements. Default is an empty list.
block
The lambda expression where the MessagesBuilder functions are called to populate the message elements.