TextElement class abstract

An TextElement is a basic rendering block of a rich-text document.

Elements are concrete and "physical": they are objects that are ready to be rendered on a canvas. This property distinguishes them from Nodes (which are structured pieces of text), and from FlameTextStyles (which are descriptors for how arbitrary pieces of text ought to be rendered).

Elements are at the final stage of the text rendering pipeline, they are created during the layout step.

Implementers

Constructors

TextElement()

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(Canvas canvas) → void
Renders the element on the canvas, at coordinates determined during the layout.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
translate(double dx, double dy) → void
Moves the element by (dx, dy) relative to its current location.

Operators

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