EventSourcedModel<S extends EventSourcedSnapshot<S, B, E>, B extends EventSourcedSnapshotBuilder<S, B, E>, E extends EventSourcedEvent<S, B, E>> class abstract

An event sourced model which can add events, moving forward.

Implementers

Constructors

EventSourcedModel(S initialState)

Properties

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

Methods

add(E event) → S
addAll(Iterable<E> events) → S
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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