isNotNullNotBlank
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
Content copied to clipboard
Since
1.4.0
See also
isNotBlank