dispatch method

void dispatch(
  1. T event
)

Invokes the event chain with an event.

Implementation

void dispatch(T event) {
  for (var value in subscriptions) {
    value.consumer(event);
  }
}