null if blank kotlin code example
Example: kotlin is null or empty
// If we do not care about the possibility of getting spaces only...
if (number.isNullOrEmpty()) {
// alerts the user to fill in their number!
}
// when we need to block the user from inputting spaces only
if (name.isNullOrBlank()) {
// alerts the user to fill in their name!
}