execute<TResult> method
Adds the command to the commands queue.
Implementation
@mustCallSuper
Future<TResult> execute<TResult>(CommandBase<TEvent, TResult> command) {
if (_commandsQueue.isNotEmpty ||
_commandsQueue.isEmpty && !command.handle(_eventsQueue)) {
_commandsQueue.add(command);
}
return command.future;
}