alignment property

AlignmentGeometry alignment
final

The alignment of the origin, relative to the size of the box.

This is equivalent to setting an origin based on the size of the box. If it is specified at the same time as the origin, both are applied.

An AlignmentDirectional.start value is the same as an Alignment whose Alignment.x value is -1.0 if textDirection is TextDirection.ltr, and 1.0 if textDirection is TextDirection.rtl. Similarly AlignmentDirectional.end is the same as an Alignment whose Alignment.x value is 1.0 if textDirection is TextDirection.ltr, and -1.0 if textDirection is TextDirection.rtl.

Implementation

final AlignmentGeometry alignment