A widget that displays text.
Constructors
- Text(String text, {Style style = Style.reset})
-
Creates a new text widget from a string.
factory
- Text.fromLine(Line line)
-
Creates a new text widget from a Line.
factory
- Text.fromSpan(Span span)
-
Creates a new text widget from a Span.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
draw(
Buffer buffer) → void -
Draws the widget on the
buffer
.inherited -
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