addEvent abstract method

void addEvent({
  1. required E event,
})

Adds a new event to the repository.

All active subscribers will receive this event if they match the event type requirements.

Throws StateError if repository is disposed.

Implementation

void addEvent({required E event});