alignment property
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 an offset, 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
AlignmentGeometry get alignment => _alignment;
Implementation
set alignment(AlignmentGeometry value) {
if (_alignment == value)
return;
_alignment = value;
markNeedsPaint();
markNeedsSemanticsUpdate();
}