PlaceholderAlignment enum
Where to vertically align the placeholder relative to the surrounding text.
Used by ParagraphBuilder.addPlaceholder.
Constants
- 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.
const PlaceholderAlignment(1)
- 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.
const PlaceholderAlignment(0)
- 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.
const PlaceholderAlignment(2)
- 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.
const PlaceholderAlignment(4)
- 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.
const PlaceholderAlignment(5)
- 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.
const PlaceholderAlignment(3)
-
values
→ const List<
PlaceholderAlignment> -
A constant List of the values in this enum, in order of their declaration.
const List<
PlaceholderAlignment>
Properties
Methods
-
toString(
) → String -
Returns a string representation of this object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited