PlaceholderAlignment enum
Where to vertically align the placeholder relative to the surrounding text.
Used by ParagraphBuilder.addPlaceholder.
Values
- baseline → const PlaceholderAlignment
-
Match the baseline of the placeholder with the baseline.
The TextBaseline to use must be specified and non-null when using this alignment mode.
- aboveBaseline → const PlaceholderAlignment
-
Align the bottom edge of the placeholder with the baseline such that the placeholder sits on top of the baseline.
The TextBaseline to use must be specified and non-null when using this alignment mode.
- belowBaseline → const PlaceholderAlignment
-
Align the top edge of the placeholder with the baseline specified such that the placeholder hangs below the baseline.
The TextBaseline to use must be specified and non-null when using this alignment mode.
- top → const PlaceholderAlignment
-
Align the top edge of the placeholder with the top edge of the text.
When the placeholder is very tall, the extra space will hang from the top and extend through the bottom of the line.
- bottom → const PlaceholderAlignment
-
Align the bottom edge of the placeholder with the bottom edge of the text.
When the placeholder is very tall, the extra space will rise from the bottom and extend through the top of the line.
- middle → const PlaceholderAlignment
-
Align the middle of the placeholder with the middle of the text.
When the placeholder is very tall, the extra space will grow equally from the top and bottom of the line.
Properties
Methods
-
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
Constants
-
values
→ const List<
PlaceholderAlignment> - A constant List of the values in this enum, in order of their declaration.