orNull

open fun orNull(): T?

Returns the result value in case of Success, otherwise returns null.

Return

The result value in case of Success, otherwise null.