StateFlow 需要一个初始值. LiveData 会自动解绑, flow要达到相同效果, collect要在 Lifecycle.repeatOnLifecycle 里. Flow的安全 ...
確定! 回上一頁