isNull

fun String?.isNull(): Boolean

Checking nullability.

Example:

val text: String? = null
text.isNull() // true

val text2 = "null"
text2.isNull() // true

val text3 = "hi"
text3.isNull() // false

Since

1.1.0

Return

Boolean