add method

void add (T data)
override

Adds a data event to the sink.

Must not be called on a closed sink.

Implementation

void add(T data) {
  _checkEventAllowed();
}