TextAlign enum

Whether and how to align text horizontally.

Inheritance

Constructors

TextAlign()
const

Values

left → const TextAlign

Align the text on the left edge of the container.

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
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

Constants

values → const List<TextAlign>
A constant List of the values in this enum, in order of their declaration.