TreeUndoableEventSourcedModel<S extends EventSourcedSnapshot<S, B, E> , B extends EventSourcedSnapshotBuilder<S, B, E> , E extends UndoableEventSourcedEvent<S, B, E> > class
abstract
An event sourced model which can add events, moving forward, move the event cursor backwards, moving backwards and creating subbranches when adding events while not on a tip.
- Inheritance
-
- Object
- EventSourcedModel<
S, B, E> - UndoableEventSourcedModel<
S, B, E> - TreeUndoableEventSourcedModel
- Implementers
Constructors
- TreeUndoableEventSourcedModel(S initialState)
- Create an TreeUndoableEventSourcedModel.
Properties
-
codec
→ Codec<
EventSourcedModel< S, B, E> , Map<String, dynamic> > -
no setterinherited
- 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 setterinherited
- undoState → ModelUndoState
-
no setterinherited
Methods
-
add(
E event) → S -
inherited
-
addAll(
Iterable< E> events) → S -
inherited
-
canNextAlt(
) → bool -
canPrevAlt(
) → bool -
canRedo(
) → bool -
inherited
-
canUndo(
) → bool -
inherited
-
nextAlt(
) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prevAlt(
) → bool -
redo(
) → bool -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
undo(
) → bool -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited