ResolvedTextLine class final

One visual line of laid-out text, with its bounds, text, runs and shaping metrics.

A paragraph that wraps resolves to several lines. startOffset and endOffset locate the line within its block blockId.

Constructors

ResolvedTextLine({required String blockId, required int startOffset, required int endOffset, required DiagramRect bounds, required DiagramRect contentBounds, required double intrinsicWidth, required double fontSize, required double baseline, required DiagramRect regionBounds, required String text, required List<TextRun> runs, DiagramColor foreground = const DiagramColor(0xFF111111), double defaultFontSize = diagramDefaultFontSize, ResolvedTextFontFamilies? fontFamilies, String? marker, ResolvedTextMarker? resolvedMarker, DiagramTextLineGeometry? geometry, TextRole role = TextRole.body, bool overflow = false, ParagraphAlignment alignment = ParagraphAlignment.start, ParagraphDirection direction = ParagraphDirection.ltr})

Properties

alignment → ParagraphAlignment
final
baseline → double
Alphabetic baseline measured from bounds.top, retained from shaping.
final
baselineY → double
no setter
blockId → String
final
bounds → DiagramRect
Full horizontal layout box shared by paint, hit testing, and carets.
final
contentBounds → DiagramRect
Deterministic fixed-metric ink bounds within bounds.
final
defaultFontFamily → String?
no setter
defaultFontSize → double
final
direction → ParagraphDirection
final
endOffset → int
final
fontFamilies → ResolvedTextFontFamilies?
final
fontSize → double
final
foreground → DiagramColor
final
geometry → DiagramTextLineGeometry?
final
hashCode → int
The hash code for this object.
no setterinherited
intrinsicWidth → double
final
marker → String?
final
overflow → bool
final
paintBounds → DiagramRect
Shared paint clip: overflow expands horizontally, retaining vertical limits.
no setter
regionBounds → DiagramRect
final
resolvedMarker → ResolvedTextMarker?
final
role → TextRole
final
runs → List<TextRun>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startOffset → int
final
text → String
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
translated(DiagramPoint delta, {double? width, DiagramRect? regionBounds}) → ResolvedTextLine
Moves the line by delta. Its regionBounds stay put unless replaced, since region-relative placement also uses this to offset lines.

Operators

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