FixedMetricsTextLayoutEngine class final

Deterministic headless bootstrap measurement. Flutter canvases supply a platform paragraph shaper through the same placement engine.

Inheritance

Constructors

FixedMetricsTextLayoutEngine({double characterWidth = 7.5, double lineHeight = diagramDefaultLineHeight, double blockSpacing = diagramDefaultBlockSpacing, double listIndent = 22})
const

Properties

blockSpacing → double
finalinherited
characterWidth → double
final
hashCode → int
The hash code for this object.
no setterinherited
lineHeight → double
final
listIndent → double
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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