fire method

void fire(
  1. dynamic event,
  2. String eventName
)

Fires a new event on the event bus with the specified event.

Implementation

void fire(event, String eventName) {
  if (_subscriptions.containsKey(eventName)) {
    _streamController.add(event);
    _cachedEvent.remove(eventName);
  } else {
    _cachedEvent.addAll({
      eventName: event,
    });
  }
}