AndroidDev, Android App Development, Android, Jetpack, Jetpack Compose.
constructor, I am using Hilt, It’s up to you whatever Dependency Injector you want to use. initialValue inside Flow.StateIn is set Unknown because in the beginning when UI loads we will not know NetworkStatus and we don’t want to show any notification on UI setting default value to any of Connected