mvrx-mocking / com.airbnb.mvrx.mocking / MavericksMock / stateForViewModelProperty

stateForViewModelProperty

fun stateForViewModelProperty(property: KProperty<*>, existingViewModel: Boolean): MavericksState?

Find a mocked state value for the given view model property.

If null is returned it means the initial state should be created through the default mavericks mechanism of arguments.