diagramLineGeometry function

DiagramTextLineGeometry diagramLineGeometry(
  1. ResolvedTextLine line
)

Interaction consumes the same shaped artifact as the canonical scene. A renderer must never independently reflow an unshaped resolved line.

Implementation

DiagramTextLineGeometry diagramLineGeometry(ResolvedTextLine line) =>
    line.geometry ??
    (throw StateError(
      'Text has no shaped line geometry. Configure the store resolver with '
      'FlutterDiagramTextLayoutEngine before mounting the Flutter canvas.',
    ));