TextAlign enum Null safety

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.

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

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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

Constants

values → const List<TextAlign>
A constant List of the values in this enum, in order of their declaration.
[left, right, center, justify, start, end]