newState method

TState newState()

Returns a typed state object backed by a new Map.

Convenient for use with getInitialState and setState.

Implementation

TState newState() => typedStateFactory({});