get
MvRx specific ViewModelProvider used for creating a BaseMavericksViewModel scoped to either a Fragment or ComponentActivity. If this is in a Fragment, it cannot be called before the Fragment has been added to an Activity or wrapped in a Lazy call.
Parameters
The class of the ViewModel you would like an instance of.
The class of the State used by the ViewModel.
The ViewModelContext which contains arguments and the owner of the ViewModel. Either ActivityViewModelContext or FragmentViewModelContext.
An optional key for the ViewModel in the store. This is optional but should be used if you have multiple of the same ViewModel class in the same scope.
If true the viewModel should already have been created. If it has not been created already, a ViewModelDoesNotExistException will be thrown
A way to specify how to create the initial state, can be mocked out for testing.