ResolvedTextStory class final
A text story after layout: its lines, the clipBounds they paint in and the contentHeight they need.
overflowHeight is how far the content exceeds the available height.
Constructors
-
ResolvedTextStory({required String storyId, required int revisionKey, required DiagramRect clipBounds, required List<
ResolvedTextLine> lines, required double contentHeight, double overflowHeight = 0})
Properties
- clipBounds → DiagramRect
-
final
- contentHeight → double
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
lines
→ List<
ResolvedTextLine> -
final
- overflowHeight → double
-
final
- revisionKey → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storyId → String
-
final
Methods
-
hitOffset(
DiagramPoint localPoint) → int -
lineForPosition(
DiagramTextPosition position) → ResolvedTextLine? - At a shared soft-wrap offset, affinity selects the preceding or following visual line. Paragraph separators have distinct offsets and remain distinct.
-
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, {int? revisionKey}) → ResolvedTextStory -
The same layout moved rigidly by
delta, regions and clip included.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited