Markers drawn before paragraphs, such as bullets, numbers and checkboxes.
Measurement and shaping remain owned by the layout backend; a marker contribution receives measured widths in document units.
Properties
- activationLabel → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- widthReference → String
-
Sample whose measured width reserves the marker gutter.
no setter
Methods
-
activate(
TextStory story, int blockIndex) → TextStory -
canActivate(
TextParagraph paragraph) → bool -
Whether activating the marker of
paragraph, such as a checkbox, edits it. -
indent(
{required TextParagraph paragraph, required double markerWidth, required double referenceWidth, required double markerFontSize, required double defaultFontSize, required double minimumIndent}) → double -
labels(
TextStory story) → List< String?> - One nonempty single-line marker, or null, per story paragraph.
-
measurementText(
TextParagraph paragraph, String marker) → String -
Text measured in place of
marker, such as a sample for a checkbox. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
strokes(
TextParagraph paragraph, {required double width, required double height, required double baseline}) → List< DiagramMarkerStroke> ? - Portable line geometry painted in place of marker text, or null.
-
toString(
) → String -
A string representation of this object.
inherited
-
width(
{required TextParagraph paragraph, required double measuredWidth, required double fontSize, required double baseline}) → double
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited