ConsoleText class
A collection of ConsoleTextFragments. Represents stylized text that can be outputted to a Console.
- Available extensions
Constructors
- ConsoleText.new(String text, [ConsoleStyle style = ConsoleStyle.plain])
-
Creates a new ConsoleText from the given
text
andstyle
.factory -
ConsoleText.fragment([Iterable<
ConsoleTextFragment> ? fragments]) -
Creates a new ConsoleText.
factory
Properties
-
fragments
→ Iterable<
ConsoleTextFragment> -
Returns the fragments that make up this text.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
terminalStylize(
) → String -
Available on ConsoleText, provided by the ConsoleTextTerminalStylize extension
Wraps a string in the ANSI codes indicated by the ConsoleText object. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator +(
covariant ConsoleText other) → ConsoleText -
operator ==(
Object other) → bool -
The equality operator.
inherited