ResolvedTextElement class final

A standalone text element resolved to geometry, with its laid-out text and layers.

source is the authored element and definition its registered definition.

Inheritance
Available extensions

Constructors

ResolvedTextElement({required String id, bool isLocked = false, required int zIndex, required DiagramRect bounds, required TextElement source, required TextElementDefinition definition, required ResolvedOutline outline, required ResolvedTextStory text, List<ResolvedShapeLayer> layers = const []})
ResolvedTextElement.withSource(ResolvedTextElement previous, {required TextElement source})
Retains shaping and geometry for a paint-only source replacement.

Properties

behavior → ShapeBehavior
What a person may do to this element now: its declared behavior, narrowed while it is locked, collapsed or holds constraining content.
latefinal
bounds → DiagramRect
finalinherited
connection → ShapeConnectionDefinition
no setteroverride
connectionPoints → List<ResolvedConnectionPoint>

Available on ResolvedFramedElement, provided by the DiagramResolvedConnectionPoints extension

no setter
container → ShapeContainer?
The container policy of a shape that owns children, else null.
no setterinherited
definition → TextElementDefinition
final
hashCode → int
The hash code for this object.
no setterinherited
hostsText → bool
Whether this element owns a text story.
no setteroverride
id → String
finalinherited
isLocked → bool
finalinherited
layers → List<ResolvedShapeLayer>
final
minimumSize → DiagramSize
no setteroverride
opacity → double
Complete-element opacity from canonical appearance.
no setterinherited
outline → ResolvedOutline
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → TextElement
final
text → ResolvedTextStory
final
textEditable → bool
Whether this element's text can be edited now.
no setteroverride
textStory → TextStory?
no setterinherited
zIndex → int
finalinherited

Methods

boundaryToward(DiagramPoint worldTarget) → DiagramPoint
inherited
hitTest(DiagramPoint worldPoint, {double tolerance = diagramStrokeHitTolerance}) → bool
Closed outlines pick their interior; stroke outlines widen to tolerance, which defaults to their fixed pick radius.
inherited
localToWorld(DiagramPoint point) → DiagramPoint
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
portById(String id) → ResolvedShapePort?
override
toString() → String
A string representation of this object.
inherited
worldToLocal(DiagramPoint point) → DiagramPoint
inherited

Operators

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