InterstateEvent<E> class

An InterstateEvent wraps another event as it travels DOWN the tree. So the originating event is a ConcreteEvent. If that event should propagate down, we wrap it in an InterstateEvent. This allows for a paper trail as the event travels, and it allows us to figure out if a particular Interstate has processed an event or not.

Inheritance

Constructors

InterstateEvent(String originId, Event<E> inner)

Properties

concrete ConcreteEvent<E>
final
data → E
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
inner Event<E>
final
originId String
final
propagateDown bool
Interstate events are created by sending events down the tree, so if our concrete event started this chain, it should continue
no setteroverride
propagateUp bool
Because this is an InterstateEvent, we are inherently traveling down the tree. Results will be reported back directly to the original ConcreteEvent callsite. This property controls sending response data to Interstates ABOVE the original callsite. (which the ConcreteEvent at the center of this thing maintains)
no setteroverride
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
span bool
no setteroverride
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

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