getAttributeOrNull

abstract fun getAttributeOrNull(key: Key): Any?(source)

Retrieves an attribute with the given key. If no attribute with the given key exists, null is returned.

Parameters

key

the key of the attribute