newState method

TState newState()

Returns a typed state object backed by a Map.

Convenient for use with initialState and setState.

Implementation

TState newState() => typedStateFactoryJs(JsBackedMap());