ChunkedConversionSink<T> class
A ChunkedConversionSink is used to transmit data more efficiently between two converters during chunked conversions.
The basic ChunkedConversionSink
is just a Sink, and converters should work with a plain Sink
, but may work more efficiently with certain specialized types of ChunkedConversionSink
.
It is recommended that implementations of ChunkedConversionSink
extend this class, to inherit any further methods that may be added to the class.
- Implemented types
-
-
Sink<
T>
-
Sink<
- Implementers
Constructors
- ChunkedConversionSink()
- ChunkedConversionSink.withCallback(void callback(List<
T> accumulated))factory
Properties
- hashCode → int read-only, inherited
- The hash code for this object. [...]
- runtimeType → Type read-only, inherited
- A representation of the runtime type of the object.
Methods
- add(
T chunk) → void override - Adds chunked data to this sink. [...]
- close(
) → void override - Closes the sink. [...]
- noSuchMethod(
Invocation invocation) → dynamic inherited - Invoked when a non-existent method or property is accessed. [...]
- toString(
) → String inherited - A string representation of this object. [...]
Operators
- operator ==(
Object other) → bool inherited - The equality operator. [...]
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-convert/ChunkedConversionSink-class.html