CrossAxisAlignment enum
How the children should be placed along the cross axis in a flex layout.
Terminal-Only Cross Axis Alignment: Unlike Flutter which supports baseline alignment for mixed font sizes, terminals use monospaced fonts with uniform character heights making baseline alignment meaningless.
Flutter compatibility note: baseline removed because terminal text has no font metrics - all characters occupy identical rectangular cells.
Values
- start → const CrossAxisAlignment
-
Place the children with their start edge aligned with the start side of the cross axis.
- end → const CrossAxisAlignment
-
Place the children as close to the end of the cross axis as possible.
- center → const CrossAxisAlignment
-
Place the children so that their centers align with the middle of the cross axis.
- stretch → const CrossAxisAlignment
-
Size children to fill the cross axis before positioning them.
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
Constants
-
values
→ const List<
CrossAxisAlignment> - A constant List of the values in this enum, in order of their declaration.