viewModelFactory

inline fun <VM : ViewModel> viewModelFactory(crossinline builder: CreationExtras.() -> VM): ViewModelFactory<VM>
inline fun <VM : ViewModel> viewModelFactory(viewModelClass: KClass<VM>, crossinline builder: CreationExtras.() -> VM): ViewModelFactory<VM>

Creates a ViewModelFactory that returns the result of invoking builder.