override fun <T : ViewModel?> create(modelClass: Class<T>): T = when (modelClass) { MainViewModelImpl::class.java -> MainViewModelImpl(appModule.environment) as T else -> throw IllegalStateException() } }
override fun <T : ViewModel?> create(modelClass: Class<T>): T = when (modelClass) { MainViewModelImpl::class.java -> MainViewModelImpl(appModule.environment) as T else -> throw IllegalStateException() } }
override fun <T : ViewModel?> create(modelClass: Class<T>): T = when (modelClass) { MainViewModelImpl::class.java -> MainViewModelImpl(appModule.environment) as T else -> throw IllegalStateException() } }