nowinandroid
nowinandroid copied to clipboard
Refactor | Added extension functions
This PR is about polishing codes, and using extension functions for StateIn()
(mostly in ViewModels).
Basically, all of the StateIn()
functions inside ViewModels were following/using the same pattern, so I decided to create two extension functions for use in both ViewModel
s using viewModelScope
, as well as CoroutineScope
outside of ViewModels
.