inline fun <reified T, reified VM : MavericksViewModel<S>, reified S : MavericksState> T.navGraphViewModel(@IdRes : Int, : KClass<VM> = VM::class, crossinline : () -> String = { viewModelClass.java.name }): MavericksDelegateProvider<T, VM> where T : Fragment, T : MavericksView
Gets or creates a ViewModel scoped to a navigation graph ID. IllegalArgumentException if the navGraphId destination is not on the back stack. IllegalStateException if the ViewModel is accessed before onViewCreated and there was a re-configuration or launch after process death