getOrNull

fun getOrNull(): T?

Returns the successful value, or null if this result is a failure.