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

Constants

center MainAxisAlignment

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

const MainAxisAlignment(2)
end MainAxisAlignment

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

const MainAxisAlignment(1)
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(4)
spaceBetween MainAxisAlignment

Place the free space evenly between the children.

const MainAxisAlignment(3)
spaceEvenly MainAxisAlignment

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

const MainAxisAlignment(5)
start MainAxisAlignment

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

const MainAxisAlignment(0)
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