Example: val liveArticleData = MutableLiveData<Article>() When liveArticleData.value is used compiler requires forced unwrap (!!) Forced unwrap is considered last resort and poor programming practice. Request: To be able to initialize MutableLiveData at declartion, so do not have to check null.
Example:
()val liveArticleData = MutableLiveData
When liveArticleData.value is used compiler requires forced unwrap (!!)
Forced unwrap is considered last resort and poor programming practice.
Request:
To be able to initialize MutableLiveData at declartion, so do not have to check null.