ConsoleTextFragment class

A single piece of ConsoleText. Contains a raw String and the desired ConsoleStyle.

Constructors

ConsoleTextFragment.new(String text, [ConsoleStyle style = ConsoleStyle.plain])
Creates a new ConsoleTextFragment with the given text and style.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style ConsoleStyle
The style to be applied to the text.
final
text String
The raw text to be outputted.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited