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 by
- 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. [...]
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
Returns a string representation of this object.
dynamic other) → bool
The equality operator. [...]