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
- hashCode â int
-
The hash code for this object.
no setterinherited
- index â int
-
A numeric identifier for the enumerated value.
no setterinherited
- name â String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType â Type
-
A representation of the runtime type of the object.
no setterinherited
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