EventSinkBase<T>  class 
    abstract
 
An abstract class that implements EventSink in terms of onAdd, onError, and onClose methods.
This takes care of ensuring that events can't be added after close is called.
- Implemented types
- 
    - EventSink<T> 
 
- EventSink<
- Annotations
- 
    - @Deprecated('Will be removed in the next major release')
 
Constructors
Properties
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
Methods
- 
  add(T data) → void 
- 
  Adds a data eventto the sink.override
- 
  addError(Object error, [StackTrace? stackTrace]) → void 
- 
  Adds an errorto the sink.override
- 
  close() → Future< void> 
- 
  Closes the sink.
  override
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  onAdd(T data) → void 
- A method that handles data events that are passed to the sink.
- 
  onClose() → FutureOr< void> 
- A method that handles the sink being closed.
- 
  onError(Object error, [StackTrace? stackTrace]) → void 
- A method that handles error events that are passed to the sink.
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited