publish method

void publish(
  1. E event
)

Implementation

void publish(E event) {
  _events.add(event);
}