2 ms·
>For example calling isNullOrBlank() on a nullable string changes to the type to nullable if the answer is false For anyone confused like I was, that's a typo,
by LordDragonfang 5y ago
>For example calling isNullOrBlank() on a nullable string changes to the type to nullable if the answer is false
For anyone confused like I was, that's a typo, it changes the type to not nullable. Likewise, isNullOrBlank() is an extension of the listed isNullOrEmpty().
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/is-null-or-blank.html https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/is-...
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/is-null-or-empty.html https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/is-...