addEvent method

void addEvent(
  1. DomainEvent event
)

Implementation

void addEvent(DomainEvent event) => _events.add(event);