Skip to content

StateBuilder ​

Methods ​

addDynamicMixinState ​

Add a sub-state that can hold a varying number of instances, all built from the same set of mixins. The built state exposes add<Name>, get<Name>List, remove<Name> and clear<Name>List methods.

addField ​

Add a plain field, with its get<Name>/set<Name> accessors, onto the state being built.

addStateFromInstance ​

Add an already built state as a sub-state.

addStateFromMixin ​

Add a single sub-state built from the given mixins.

build ​

Build the state, optionally decorating the root state with the given mixins.

createBuilder ​

Create a new, empty state builder.