valueOrDefault

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

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