valueOrNull

open fun valueOrNull(): A?(source)

Returns the value if this instance is of type Value, or null if it is of type Reference.

Report a problem

Return

The value of type A if this is a Value, or null if this is a Reference.