FileStdout class
- Implemented types
Constructors
- FileStdout(IOSink output, Stdout parent, {required Logger fileLogger, required Logger stdLogger})
Properties
- done → Future
-
A future that will complete when the consumer closes, or when an
error occurs.
no setter
- encoding ↔ Encoding
-
The Encoding used when writing strings.
getter/setter pair
- fileLogger → Logger
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasTerminal → bool
-
Whether there is a terminal attached to stdout.
no setteroverride
- nonBlocking → IOSink
-
A non-blocking
IOSink
for the same output.no setteroverride - output → IOSink
-
final
- parent → Stdout
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stdLogger → Logger
-
final
- 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 byte
data
to the target consumer, ignoring encoding. -
addError(
Object error, [StackTrace? stackTrace]) → void - Passes the error to the target consumer as an error event.
-
addStream(
Stream< List< stream) → Futureint> > -
Adds all elements of the given
stream
. -
close(
) → Future - Close the target consumer.
-
flush(
) → Future - Returns a Future that completes once all buffered data is accepted by the underlying StreamConsumer.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
Object? object) → void -
Converts
object
to a String by invoking Object.toString and adds the encoding of the result to the target consumer. -
writeAll(
Iterable objects, [String sep = ""]) → void -
Iterates over the given
objects
and writes them in sequence. -
writeCharCode(
int charCode) → void -
Writes the character of
charCode
. -
writeln(
[Object? object = ""]) → 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