PositionUnit.cross constructor
const
PositionUnit.cross(
- PositionUnit position
Creates a position unit that uses the cross-axis value of another position unit.
The cross-axis is perpendicular to the current axis: if positioning on the horizontal axis, this evaluates the position on the vertical axis, and vice versa. This allows coordinating positions across both dimensions.
Implementation
const factory PositionUnit.cross(PositionUnit position) = PositionCross;