LabelElement class

A label element.

Inheritance

Constructors

LabelElement({required String text, required Offset anchor, Alignment defaultAlign = Alignment.center, required LabelStyle style, String? tag})
Creates a label element.

Properties

anchor Offset
The anchor position of this block.
finalinherited
defaultAlign Alignment
The default align of this block to anchor when BlockStyle.align is not set.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
paintPoint Offset
latefinalinherited
rotation double?
The rotation of this element.
finalinherited
rotationAxis Offset?
The rotation axis of this element.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style LabelStyle
The style of this element.
finalinherited
tag String?
The tag to indicate correspondence of this element in animation.
finalinherited
text String
The content text of this label.
final

Methods

draw(Canvas canvas) → void
Indicates how this element is drawn.
override
lerpFrom(covariant LabelElement from, double t) LabelElement
Linearly interpolate between this element and from.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Canvas canvas) → void
Paints this element on canvas.
inherited
toString() String
A string representation of this object.
inherited

Operators

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