on<T extends DomainEvent> method
Subscribe on the given T
event.
Returns a EventSubscriptionBuilder that allows to build a specific subscription.
Implementation
EventSubscriptionBuilder<T> on<T extends DomainEvent>() =>
EventSubscriptionBuilder.create(_eventHandlerStore);