fun state(name: String, args: (Args.() -> Args)? = null, statesBuilder: TwoStatesBuilder<V, S1, VM1, S2, VM2>.() -> Unit): Unit
Provide state objects for each view model in the view.
The DSL provided by DataClassSetDsl can be used for simpler state modification.
Mock variations should test alterations to the "default" state, with each variant testing a minimal difference (ideally only one change). For example, a variant may test that a single property is null or empty.
name - Describes the UI these states put the view in. Should be unique.
args - The arguments that should be provided to the view.
This is only useful if the view accesses arguments directly to get data that is not provided in the view model state.
In other cases it should be omitted. By default the args you set as default in the top level mock method will be used.
The receiver of the lambda is the default args.
statesBuilder - A lambda that is used to define state objects for each view model.