add method

  1. @override
void add(
  1. dynamic data
)
override

Adds data to the sink.

Must not be called after a call to close.

Implementation

@override
void add(dynamic data) {
  if (_target != null) {
    _target!.setValue(converter(data));
  }
}