add method Null safety

void add (
  1. T data
)

Adds data to the sink.

Must not be called after a call to close.

Implementation

void add(T data);