setData

open fun <M> setData(key: DataKey<M>, object: M)(source)

Sets data for this node using the given key. For information on creating DataKey, see DataKey.

Parameters

<M>

The type of data

key

The singleton key for the data

object

The data object

See also