SetStateHandler constructor

const SetStateHandler(
  1. AnyStateReference stateReference,
  2. Object value
)

Wraps the given stateReference and value in a SetStateHandler object.

The value must not be mutated after the object is created (e.g. in the event that it is a DynamicMap or DynamicList).

Implementation

const SetStateHandler(this.stateReference, this.value);