add method

void add(
  1. T event
)

Adds an event to the stream.

Implementation

void add(T event) {
  _value = event;
  listenable._notifyData(event);
}