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

An TreeUndoableEventSourcedModel which uses an UndoTree as the backing data structure.

Inheritance

Constructors

UndoTreeEventSourcedModel(S initialState)
Create an UndoTreeEventSourcedModel from an initialState

Properties

codec Codec<UndoTreeEventSourcedModel<S, B, E>, Map<String, dynamic>>
no setteroverride
currentEvent → E?
no setter
hashCode int
The hash code for this object.
no setterinherited
initialState → S
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snapshot → S
no setteroverride
undoState ModelUndoState
no setteroverride

Methods

add(E event) → S
override
addAll(Iterable<E> events) → S
override
canNextAlt() bool
override
canPrevAlt() bool
override
canRedo() bool
override
canUndo() bool
override
nextAlt() bool
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prevAlt() bool
override
redo() bool
override
toString() String
A string representation of this object.
inherited
undo() bool
override

Operators

operator ==(Object other) bool
The equality operator.
inherited