How the children should be placed along the main axis in a flex layout.

See also:

Constants

center MainAxisAlignment

Place the children as close to the middle of the main axis as possible.

const MainAxisAlignment(null)
end MainAxisAlignment

Place the children as close to the end of the main axis as possible.

const MainAxisAlignment(null)
spaceAround MainAxisAlignment

Place the free space evenly between the children as well as half of that space before and after the first and last child.

const MainAxisAlignment(null)
spaceBetween MainAxisAlignment

Place the free space evenly between the children.

const MainAxisAlignment(null)
spaceEvenly MainAxisAlignment

Place the free space evenly between the children as well as before and after the first and last child.

const MainAxisAlignment(null)
start MainAxisAlignment

Place the children as close to the start of the main axis as possible.

const MainAxisAlignment(null)
values List<MainAxisAlignment>

A constant List of the values in this enum, in order of their declaration.

const List<MainAxisAlignment>

Properties

index int

The integer index of this enum.

final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(other) bool
The equality operator. [...]
inherited