Strategy to use for dispatching events to the handlers
Constructors
- DispatchStrategy.concurrent()
-
Dispatches events concurrently to all EventHandler's.
constfactory
- DispatchStrategy.sequential()
-
Dispatches events one by one to the EventHandler's.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
execute<
TEvent extends DomainEvent> (Set< EventHandler< handlers, TEvent event, List<TEvent> >EventObserver> observers) → Future<void> -
Executes the given strategy by applying the
event
to the givenhandlers
. -
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