textAlign property
TextAlign
get
textAlign
Gets or sets the alignment location in the TextBlock's given space.
The only possible values are "start", "end", "left", "right", and "center".
Any other value is invalid.
This property is most pertinent when the TextBlock has multiple lines of text, or when the TextBlock is given a size that differs from the text's natural size (such as with #desiredSize).
In left-to-right writing systems, "start" and "left" are synonymous, as are "end" and "right".
The default is "start".
Implementation
_i3.TextAlign get textAlign => _i3.TextAlign.values.byName(_i4.getProperty(
this,
'textAlign',
));
set
textAlign
(TextAlign value)
Implementation
set textAlign(_i3.TextAlign value) {
_i4.setProperty(
this,
'textAlign',
value.name,
);
}