Constructs an EventApi instance.
By default, this constructor returns an EventImpl instance, which implements the EventApi interface.
EventImpl
factory EventApi() => EventImpl();