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