The "write" end of anPipe created byPipe.create.
final pipe = await Pipe.create();pipe.write.add("Hello World!".codeUnits);await pipe.write.flush();await pipe.write.close();- Implemented types
Properties
- done→Future
- A future that will complete when the consumer closes, or when anerror occurs.no setterinherited
- encoding↔Encoding
- TheEncoding used when writing strings.getter/setter pairinherited
- 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(
List< int> data)→ void - Adds byte
datato the target consumer, ignoringencoding.inherited - addError(
Objecterror, [StackTrace?stackTrace])→ void - Passes the error to the target consumer as an error event.inherited
- addStream(
Stream< List< stream)→Futureint> > - Adds all elements of the given
stream.inherited - close(
)→Future - Close the target consumer.inherited
- flush(
)→Future - Returns aFuture that completes once all buffered data is accepted by theunderlyingStreamConsumer.inherited
- noSuchMethod(
Invocationinvocation)→ dynamic - Invoked when a nonexistent method or property is accessed.inherited
- toString(
)→String - A string representation of this object.inherited
- write(
Object?object)→ void - Converts
objectto a String by invokingObject.toString andadds the encoding of the result to the target consumer.inherited - writeAll(
Iterableobjects, [Stringseparator =""])→ void - Iterates over the given
objectsandwrites them in sequence.inherited - writeCharCode(
intcharCode)→ void - Writes the character of
charCode.inherited - writeln(
[Object?object =""])→ void - Converts
objectto a String by invokingObject.toString andwrites the result tothis, followed by a newline.inherited
Operators
- operator ==(
Objectother)→bool - The equality operator.inherited