Created
July 19, 2019 05:17
-
-
Save kishansinhparmar/3232dd52492cfa65110c7659e7c1e016 to your computer and use it in GitHub Desktop.
View model with repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class $viewModelName$Factory(val repo: RepoModel) : ViewModelProvider.Factory { | |
override fun <T : ViewModel?> create(modelClass: Class<T>): T = $viewModelName$(repo) as T | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment