TextAlign enum
The text-align CSS property sets the horizontal alignment of the inline-level content
inside a block element or table-cell box. This means it works like vertical-align but
in the horizontal direction.
Read more: MDN text-align
Values
- start → const TextAlign
-
The same as left if direction is left-to-right and right if direction is right-to-left.
const TextAlign('start') - end → const TextAlign
-
The same as right if direction is left-to-right and left if direction is right-to-left.
const TextAlign('end') - left → const TextAlign
-
The inline contents are aligned to the left edge of the line box.
const TextAlign('left') - right → const TextAlign
-
The inline contents are aligned to the right edge of the line box.
const TextAlign('right') - center → const TextAlign
-
The inline contents are centered within the line box.
const TextAlign('center') - justify → const TextAlign
-
The inline contents are justified. Spaces out the content to line up its left and right edges to the left and right edges of the line box, except for the last line.
const TextAlign('justify') - matchParent → const TextAlign
-
Similar to inherit, but the values start and end are calculated according to the parent's direction and are replaced by the appropriate left or right value.
const TextAlign('match-parent') - inherit → const TextAlign
-
const TextAlign('inherit') - initial → const TextAlign
-
const TextAlign('initial') - revert → const TextAlign
-
const TextAlign('revert') - revertLayer → const TextAlign
-
const TextAlign('revert-layer') - unset → const TextAlign
-
const TextAlign('unset')
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
- value → String
-
final
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