序列化LiveData

使用serialLiveData创建LiveData

val liveData by serialLiveData("默认值")

每次写入都回调观察者observe

liveData.observe(this) {
    toast("观察到本地数据: $it")
}