create<T extends ApplicationEvent> static method

EventProvider<T> create<T extends ApplicationEvent>(
  1. T eventFactory()
)

Implementation

static EventProvider<T> create<T extends ApplicationEvent>(T Function() eventFactory) => EventProvider(
    eventFactory: eventFactory,
    onPublish: (eventBroker, event) => eventBroker.publish<T>(event));