isNotNullNotBlank

fun String?.isNotNullNotBlank(): Boolean

Return true if string not null and not blank.

Example:

val text: String? = null
text.isNotNullNotBlank() // false

val text2 = "null"
text2.isNotNullNotBlank() // false

val text3 = "hi"
text3.isNotNullNotBlank() // true

val text4 = " "
text4.isNotNullNotBlank() // false

Since

1.4.0

See also

isNotBlank