ConsoleOutputDevice class
Constructors
- ConsoleOutputDevice.new(Console console)
Properties
- console → Console
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isClosed → bool
-
Whether the device is closed
no setter
- mode → String
-
The mode this device was opened in (r, w, a, etc.)
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> - Close the device
-
flush(
) → Future< void> - Flush any buffered data
-
getPosition(
) → Future< int> - Get the current position in the device
-
isEOF(
) → Future< bool> - Check if we're at the end of the device
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
[String format = "l"]) → Future< ReadResult> - Read from the device according to the given format format can be:
-
seek(
SeekWhence whence, int offset) → Future< int> - Seek to a position in the device Returns the new position
-
setBuffering(
BufferMode mode, [int? size]) → Future< void> - Set the buffering mode and optionally the buffer size
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
String data) → Future< WriteResult> - Write data to the device
-
writeBytes(
List< int> bytes) → Future<WriteResult> - Write raw bytes to the device without any encoding.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited