or

infix inline fun <T, R : T> ApiResult<T>.or(defaultValue: R): T

If this is Error or Loading, returns defaultValue.

See also