Terminal class
Constructors
- Terminal()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → (int, int)
-
The size of the Console window. Used for calculating lines printed
and centering text.
no setteroverride
- userinfo → Map
-
The current user's information.
final
Methods
-
clear(
ConsoleClear type) → void -
Clears previously printed Console output according to the ConsoleClear
type specified.
override
-
command(
ANSICommand command) → void -
Performs an
ANSICommand
. -
input(
{bool secure = false}) → String -
Returns a String of input read from the Console until a line feed
character was found.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
output(
ConsoleText text, {bool newline = true}) → void -
Outputs serialized ConsoleText to the Console.
override
-
report(
ConsoleText text, {bool newline = true}) → void -
Outputs an error to the Console's error stream.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited