Created
April 25, 2021 18:32
-
-
Save Ochornma/f88d813dce4ec9568c7fd97ac9f144ef to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| @Suppress("UNCHECKED_CAST") | |
| class VerifyBVNFactory( | |
| private val repository: SoftKashRepository | |
| ): ViewModelProvider.NewInstanceFactory() { | |
| override fun <T : ViewModel?> create(modelClass: Class<T>): T { | |
| return VerifyBVNViewModel(repository) as T | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment