Dart SDK
dart:async
EventSink
class
EventSink<T>
Constructors
Methods
Constructors
EventSink
Methods
add
addError
close
An interface that abstracts creation or handling of
Stream
events.
Implements
Sink
<T>
Implemented by
StreamSink
Constructors
EventSink
()
Methods
add
(
T
event
) →
void
Send a data event to a stream.
addError
(
errorEvent
, [
StackTrace
stackTrace
]) →
void
Send an async error to a stream.
close
(
) →
void
Close the sink. No further events can be added after closing.