MainAlignment enum

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

Inspired by Flutter MainAxisAlignment

Inheritance

Constructors

MainAlignment()
const

Values

start → const MainAlignment

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

end → const MainAlignment

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

center → const MainAlignment

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

spaceBetween → const MainAlignment

Place the free space evenly between the children.

spaceAround → const MainAlignment

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

spaceEvenly → const MainAlignment

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

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