FlutterDiagramTextLayoutEngine class final

Flutter font shaping with the shared story/slot placement contract. Install on the diagram's resolver before its first document publication.

Inheritance
Implemented types

Constructors

FlutterDiagramTextLayoutEngine({double blockSpacing = diagramDefaultBlockSpacing, double listIndent = 22, int maxCachedParagraphs = 512, int maxCachedCodeUnits = 262144})

Properties

blockSpacing → double
finalinherited
cachedCodeUnits → int
no setter
cachedParagraphCount → int
no setter
hashCode → int
The hash code for this object.
no setterinherited
listIndent → double
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textLayoutRevision → int
no setteroverride

Methods

invalidateFonts() → void
Call after the host changes available fonts, then refresh the diagram layout.
layout({required TextStory story, required DiagramRect clipBounds, required int revisionKey, List<DiagramTextRegionLayout> regions = const []}) → ResolvedTextStory
inherited
measureBlock(TextParagraph block, DiagramTextRegionLayout region, double availableWidth) → List<DiagramMeasuredTextLine>
Shapes every block into at least one finite, positive-height visual line, including an empty block. Offsets remain relative to canonical block text. The same line metrics drive placement, carets, selection and owner growth.
override
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.
inherited