I want to use LiveData with Kotlin and have values that should not be null. How do you deal with this? Perhaps a wrapper around LiveData? Searching for good patterns here .. As
When using strings is simple by using this way:
val someLiveData = MutableLiveData() ... someLiveData.value.orEmpty()
And you will get actual value if set or an empty string instead of null.
null