A Sink that supports adding errors.
This makes it suitable for capturing the results of asynchronous computations, which can complete with a value or an error.
The EventSink has been designed to handle asynchronous events from
Streams. See, for example, Stream.eventTransformed which uses
EventSinks to transform events.
- Implemented types
- hashCode → int
The hash code for this object.
- runtimeType → Type
A representation of the runtime type of the object.
T event) → void
Adds a data
eventto the sink.override
Object error, [StackTrace? stackTrace]) → void
errorto the sink.
) → void
Closes the sink.
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
) → String
A string representation of this object.
Object other) → bool
The equality operator.