add method

void add(
  1. T event
)

Implementation

void add(T event) {
  assert(!isClosed, 'You cannot add event to closed Stream');
  _value = event;
  _notifyData(event);
}