DrainableSink<T> class
abstract
DrainableSink is an AwaitableSink that allows the consumer to start draining the internal pipeline.
- Implemented types
- Implementers
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) → FutureOr< void> -
Add data to the sink.
inherited
-
addError(
Object error, [StackTrace? stackTrace]) → FutureOr< void> -
Add an error to the sink.
inherited
-
close(
[Option< T> data]) → FutureOr<void> -
Close the sink
inherited
-
drain(
Future< void> task(AwaitableSink<T> sink)) → Future<void> - Start draining the sink.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited