fun state(name: String, args: (Args.() -> Args)? = null, statesBuilder: FiveStatesBuilder<V, S1, VM1, S2, VM2, S3, VM3, S4, VM4, S5, VM5>.() -> Unit): Unit
Provide state objects for each view model in the view.
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 used 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. This must be provided if the view accesses args directly.
statesBuilder - A lambda that is used to define state objects for each view model. See FiveStatesBuilder