title: Nullability and LiveData with Kotlin
body: <p>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 an example:</p>
  
  <pre><code>class NetworkDefinitionProvider : MutableLiveData&lt;NetworkDefinition&gt;() {
      val allDefinitions = mutableListOf(RinkebyNetworkDefinition(), MainnetNetworkDefinition(), RopstenNetworkDefinition())
  
      init {
          value = allDefinitions.first()
      }
  
      fun setCurrent(value: NetworkDefinition) {
          setValue(value)
      }
  }
  </code></pre>
  
  <p>I know value will not be null when accessing - but I will always have to check for null or have these ugly !!'s around.</p>