to

infix fun String.to(value: Any)(source)

Adds a key-value pair to the context using infix notation.

Example:

context {
ContextKeys.USER_ID to "user-123"
}

Parameters

value

The value to associate with this key