I have a function that returns a live data such as
Copy code
fun getLiveData(): LiveData<Result?> { return mResult }
where mResult is just a simple POJO. I am confused a bit about how kotlin interprets the return type for this function. I would imagine this to be non-null but when I try to call it, it forces me to use the null-safe operator "?.". If I wanted this to be nullable, I would imagine the return type would be