canHandleCommand method

  1. @protected
bool canHandleCommand(
  1. Command command
)

Check if the aggregate can handle a specific command Override in subclasses for custom command routing

Implementation

@protected
bool canHandleCommand(Command command) {
  return _commandHandlers.getHandler(command) != null;
}