1. @override
void add(event)

Adds a data event to the sink.

Must not be called on a closed sink.

Source

@override
void add(event) {
  _sendPort.send({"t": "data", "d": event});
}