TextAlign enum Null safety
Whether and how to align text horizontally.
Constructors
- TextAlign()
-
const
Values
- left → const TextAlign
-
Align the text on the left edge of the container.
TextAlign()
- right → const TextAlign
-
Align the text on the right edge of the container.
TextAlign()
- center → const TextAlign
-
Align the text in the center of the container.
TextAlign()
- 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.
TextAlign()
- 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.
TextAlign()
- 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.
TextAlign()
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited