UndoableEventSourcedModel<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 and move the event cursor backwards, moving backwards.

Inheritance
Implementers

Constructors

UndoableEventSourcedModel(S initialState)
Create an UndoableEventSourcedModel.

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
canRedo() bool
canUndo() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
redo() bool
toString() String
A string representation of this object.
inherited
undo() bool

Operators

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