typedStateFactoryJs method

TState typedStateFactoryJs(
  1. JsBackedMap stateMap
)

Returns a typed state object backed by the specified stateMap.

Required to properly instantiate the generic TState class.

This should be used where possible over typedStateFactory to allow for more efficient dart2js output.

Implementation

TState typedStateFactoryJs(JsBackedMap stateMap) => throw UngeneratedError(member: #typedStateFactoryJs,
    message: '${GeneratedErrorMessages.typedStateFactory}${GeneratedErrorMessages.component1AnnotationOnComponent2}');