valueUpToDate

val <T> LiveData<T>.valueUpToDate: T?

Same as LiveData.getValue with the exception that the returned value is up to date even when the LiveData instance does not have an observer.

The returned value is null when the LiveData instance does not have a value yet.

If you need to call LiveData.getValue in an observer callback for this LiveData instance, use LiveData.observedValue instead.

Observing LiveData is strongly preferred over using this property, but where that is not an option this property should be used over LiveData.getValue.