mvrx-mocking / com.airbnb.mvrx.mocking / TwoStatesBuilder / viewModel1

viewModel1

fun viewModel1(stateBuilder: S1.() -> S1): Unit

Define a state to be used when mocking your first view model (as defined in the top level mock method). If this method isn't called, your default state will be used automatically. For convenience, the receiver of the lambda is the default state.