ApiResult
Toggle table of contents
common
Platform filter
common
Switch theme
Search in API
ApiResult
core
/
pro.respawn.apiresult
/
mapOrDefault
map
Or
Default
inline
fun
<
T
,
R
>
ApiResult
<
T
>
.
mapOrDefault
(
default
:
(
e
:
Exception
)
->
R
,
transform
:
(
T
)
->
R
)
:
R
Map the
Success
result using
transform
, and if the result is not a success, return
default