UndoTreeEventSourcedModel<S extends EventSourcedSnapshot<S, B, E>, B extends EventSourcedSnapshotBuilder<S, B, E>, E extends UndoableEventSourcedEvent<S, B, E>> constructor

UndoTreeEventSourcedModel<S extends EventSourcedSnapshot<S, B, E>, B extends EventSourcedSnapshotBuilder<S, B, E>, E extends UndoableEventSourcedEvent<S, B, E>>(
  1. S initialState
)

Create an UndoTreeEventSourcedModel from an initialState

Implementation

UndoTreeEventSourcedModel(S initialState)
    : _tree = UndoTree<E?>()..add(null),
      super(initialState);