Mokkery
Toggle table of contents
2.8.0
common
Platform filter
common
Switch theme
Search in API
Mokkery
mokkery-runtime
/
dev.mokkery.matcher.capture
/
getIfPresent
get
If
Present
fun
<
T
>
SlotCapture
<
T
>
.
getIfPresent
(
)
:
T
?
(
source
)
Returns unwrapped
SlotCapture.value
if it is
SlotCapture.Value.Present
. Otherwise, it returns null.