put

fun <K : NavMetadataKey<T>, T : Any> put(key: K, value: T)

Adds the key and value pair to the map of metadata.

T the value type. K the key for a value of type T.

Parameters

key

the key associated with the value

value

the data to be added to the map of metadata