DiagramParagraphCacheKey class final

Only paragraph-local shaping inputs belong in this key. Shape identity, paragraph identity, position, clipping height and vertical alignment affect placement afterward, so equal paragraphs in different shapes share an entry. Every shaper keys on the same inputs; foreground matters only to shapers whose retained paragraphs also paint, and is kept for all of them.

Constructors

DiagramParagraphCacheKey(TextParagraph block, DiagramTextRegionLayout region, double availableWidth)

Properties

alignment → ParagraphAlignment
final
codeUnits → int
no setter
defaultFontSize → double
final
direction → ParagraphDirection
final
foreground → DiagramColor
final
hashCode → int
The hash code for this object.
no setteroverride
role → TextRole
final
runs → List<TextRun>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
singleLine → bool
final
width → double
final
wrap → bool
final

Methods

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.
override