StringAccumulatorSink class

A sink that provides access to the concatenated strings passed to it.

See also StringConversionSink.withCallback.

Inheritance

Constructors

StringAccumulatorSink()

Properties

isClosed bool
Whether close has been called.
read-only
string String
The string accumulated so far.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

add(String chunk) → void
Adds chunked data to this sink. [...]
override
addSlice(String chunk, int start, int end, bool isLast) → void
Adds the next chunk to this. [...]
override
clear() → void
Empties string. [...]
close() → void
Closes the sink. [...]
override
asStringSink() ClosableStringSink
Returns this as a ClosableStringSink. [...]
inherited
asUtf8Sink(bool allowMalformed) ByteConversionSink
Returns this as a sink that accepts UTF-8 input. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited