DoublyLinkedEventSourcedModel<S extends EventSourcedSnapshot<S, B, E> , B extends EventSourcedSnapshotBuilder<S, B, E> , E extends UndoableEventSourcedEvent<S, B, E> > class
An UndoableEventSourcedModel which uses an DoubleLinkedQueueEntry as the backing data structure.
- Inheritance
-
- Object
- EventSourcedModel<
S, B, E> - UndoableEventSourcedModel<
S, B, E> - DoublyLinkedEventSourcedModel
Constructors
- DoublyLinkedEventSourcedModel(S initialState)
- Create an DoublyLinkedEventSourcedModel.
Properties
-
codec
→ Codec<
EventSourcedModel< S, B, E> , Map<String, dynamic> > -
no setteroverride
- 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
-
canRedo(
) → bool -
override
-
canUndo(
) → bool -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
redo(
) → bool -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
undo(
) → bool -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited