GridPadPlacementPolicy class

Implicit placement policy for items.

There are two major types of settings here: the main axis of placement presented by the mainAxis property and the direction of placement presented by horizontalPolicy and verticalPolicy properties.

The mainAxis property describes which axis would be used to find the next position. For example, Axis.horizontal means that firstly next position will look in a current row and if there isn't a place for the item algorithm will move to the next row.

The horizontalPolicy property describes the direction for choosing the next item on the horizontal axis: left or right side, depending on LTR or RTL settings.

The verticalPolicy property describes the direction for choosing the next item on the vertical axis: above or below.

Constructors

GridPadPlacementPolicy({Axis mainAxis = Axis.horizontal, HorizontalPolicy horizontalPolicy = HorizontalPolicy.startEnd, VerticalPolicy verticalPolicy = VerticalPolicy.topBottom})

Properties

anchor GridPadSpanAnchor
Anchor for spanned cells.
final
hashCode int
The hash code for this object.
no setteroverride
horizontalPolicy HorizontalPolicy
horizontal placement policy
final
mainAxis Axis
the main axis for selecting the next location
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
verticalPolicy VerticalPolicy
vertical placement policy
final

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.
override