add method
- @mustCallSuper
- TEvent event
Adds the event
to the events queue.
Implementation
@mustCallSuper
void add(TEvent event) {
_eventsQueue.add(event);
while (_commandsQueue.isNotEmpty) {
if (_commandsQueue.first.handle(_eventsQueue)) {
_commandsQueue.removeFirst();
} else {
return;
}
}
}