WrapAlignment enum

How Wrap should align objects.

Used both to align children within a run in the main axis as well as to align the runs themselves in the cross axis.

Constants

center → const WrapAlignment

Place the objects as close to the middle of the axis as possible.

const WrapAlignment(2)
end → const WrapAlignment

Place the objects as close to the end of the axis as possible.

If this value is used in a horizontal direction, a TextDirection must be available to determine if the end is the left or the right.

If this value is used in a vertical direction, a VerticalDirection must be available to determine if the end is the top or the bottom.

const WrapAlignment(1)
spaceAround → const WrapAlignment

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

const WrapAlignment(4)
spaceBetween → const WrapAlignment

Place the free space evenly between the objects.

const WrapAlignment(3)
spaceEvenly → const WrapAlignment

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

const WrapAlignment(5)
start → const WrapAlignment

Place the objects as close to the start of the axis as possible.

If this value is used in a horizontal direction, a TextDirection must be available to determine if the start is the left or the right.

If this value is used in a vertical direction, a VerticalDirection must be available to determine if the start is the top or the bottom.

const WrapAlignment(0)
values → const List<WrapAlignment>

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

const List<WrapAlignment>

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

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

Operators

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