Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
assertNotNull
Asserts that the actual value is not null
, with an optional message.
inline fun <T : Any, R> assertNotNull(
actual: T?,
message: String? = null,
block: (T) -> R
): Unit
(source)
Asserts that the actual value is not null
, with an optional message and a function block to process the not-null value.