reset method

void reset()

Reset to initial state

Implementation

void reset() {
  Transaction.run(() {
    value = StructuredState<TState, TEvent>(
      state: _initialState,
      eventHistory: [],
    );
  });
}