emit<T extends VyuhEvent> abstract method

void emit<T extends VyuhEvent>(
  1. T event
)

Emit an event to all subscribers.

The event will be delivered to all listeners subscribed to events of type T.

Example:

vyuh.event.emit(UserLoggedInEvent(
  data: UserData(userId: '123'),
));

Implementation

void emit<T extends VyuhEvent>(T event);