AlignItems enum

Set the space distributed between and around content items along the cross-axis of their container.

Inheritance

Constructors

AlignItems()
const

Values

flexStart → const AlignItems

The cross-start margin edges of the flex items are flushed with the cross-start edge of the line.

start → const AlignItems

The items are packed flush to each other toward the start edge of the alignment container in the appropriate axis.

flexEnd → const AlignItems

The cross-end margin edges of the flex items are flushed with the cross-end edge of the line.

end → const AlignItems

The items are packed flush to each other toward the end edge of the alignment container in the appropriate axis.

center → const AlignItems

The flex items' margin boxes are centered within the line on the cross-axis. If the cross-size of an item is larger than the flex container, it will overflow equally in both directions.

stretch → const AlignItems

Flex items are stretched such that the cross-size of the item's margin box is the same as the line while respecting width and height constraints.

baseline → const AlignItems

All flex items are aligned such that their flex container baselines align. The item with the largest distance between its cross-start margin edge and its baseline is flushed with the cross-start edge of the line.

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<AlignItems>
A constant List of the values in this enum, in order of their declaration.