TextAlign enum
Whether and how to align text horizontally.
Values
- left → const TextAlign
-
Align the text on the left edge of the container.
- right → const TextAlign
-
Align the text on the right edge of the container.
- center → const TextAlign
-
Align the text in the center of the container.
- justify → const TextAlign
-
Stretch lines of text that end with a soft line break to fill the width of the container.
Lines that end with hard line breaks are aligned towards the start edge.
- start → const TextAlign
-
Align the text on the leading edge of the container.
For left-to-right text (TextDirection.ltr), this is the left edge.
For right-to-left text (TextDirection.rtl), this is the right edge.
- end → const TextAlign
-
Align the text on the trailing edge of the container.
For left-to-right text (TextDirection.ltr), this is the right edge.
For right-to-left text (TextDirection.rtl), this is the left edge.
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