getOrThrow
fun <T : ViewModel> getOrThrow( owner: ViewModelStoreOwner, kotlinClass: KClass<*>, key: String): T
Content copied to clipboard
Returns an existing ViewModel or throws an exception when no matching view model can be restored.
Parameters
owner
The ViewModelStoreOwner owning the store.
key
Unique identifier for this ViewModel.