mvrx-mocking / com.airbnb.mvrx.mocking / FourStatesBuilder / viewModel4

viewModel4

fun viewModel4(stateBuilder: S4.() -> S4): Unit

Define a state to be used when mocking your fourth 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.