isNotNullOrBlank

fun String?.isNotNullOrBlank(): Boolean

Deprecated

This function is deprecated and will be removed in next major release.Use isNotNullNotBlank() instead.

Replace with

import com.parsuomash.affogato.core.ktx.text.isNotNullNotBlank
isNotNullNotBlank()

Return true if string not null and not blank.

Example:

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

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

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

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

Since

1.1.0

See also

isNotBlank