TextPainterTextElement class

Inheritance

Constructors

TextPainterTextElement(TextPainter _textPainter)

Properties

boundingBox Rect
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
metrics LineMetrics
The dimensions of this line.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textPainter TextPainter
no setter

Methods

draw(Canvas canvas) → void
Renders the element on the canvas, at coordinates determined during the layout.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(Canvas canvas, Vector2 position, {Anchor anchor = Anchor.topLeft}) → void
inherited
toString() String
A string representation of this object.
override
translate(double dx, double dy) → void
Moves the element by (dx, dy) relative to its current location.
override

Operators

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