Stdout class
- Implemented types
Constructors
- Stdout(TTYWriteStream nativeStream)
Properties
- done → Future
-
Return a future which is completed when the StreamSink is finished.
no setterinherited
- drain → Future
-
Returns Future which completes once all buffered data is accepted by
underlying target.
no setterinherited
- encoding ↔ Encoding
-
The Encoding used when writing strings.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasTerminal → bool
-
Whether there is a terminal attached to stdout.
no setteroverride
- lineTerminator ↔ String
-
The line terminator used when
writeln
is called.getter/setter pair - nativeInstance → TTYWriteStream
-
Native JavaScript Writable wrapped by this stream.
no setter
- nonBlocking → IOSink
-
A non-blocking
IOSink
for the same output.no setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsAnsiEscapes → bool
-
Whether connected to a terminal that supports ANSI escape sequences.
no setteroverride
- terminalColumns → int
-
The number of columns of the terminal.
no setteroverride
- terminalLines → int
-
The number of lines of the terminal.
no setteroverride
Methods
-
add(
List< int> data) → void -
Adds a data
event
to the sink.inherited -
addError(
Object error, [StackTrace? stackTrace]) → void -
Adds an
error
to the sink.inherited -
addStream(
Stream< List< stream) → Futureint> > -
Consumes the elements of
stream
.inherited -
close(
) → Future -
Tells the stream sink that no further streams will be added.
inherited
-
flush(
) → Future -
Returns a Future that completes once all buffered data is accepted by the
underlying StreamConsumer.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
Object? obj) → void -
Converts
object
to a String by invoking Object.toString and adds the encoding of the result to the target consumer.inherited -
writeAll(
Iterable objects, [String separator = '']) → void -
Iterates over the given
objects
and writes them in sequence.inherited -
writeCharCode(
int charCode) → void -
Writes the character of
charCode
.inherited -
writeln(
[Object? obj = '']) → void -
Converts
object
to a String by invoking Object.toString and writes the result tothis
, followed by a newline.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited