withEvent<TEvent extends ApplicationEvent> method
void
withEvent<TEvent extends ApplicationEvent>({})
Implementation
void withEvent<TEvent extends ApplicationEvent>(
{required Function(TEvent) handler,
bool Function(TEvent)? passesCriteria,
String? scopeId}) =>
entries.add(EventSubscriptionEntry.create(handler, scopeId: scopeId));