valueOrNull

inline fun <T> Event<T>.valueOrNull(): T?(source)

Returns the encapsulated value if this Event is a Event.Value, otherwise returns null.