textAlign property

TextAlign textAlign

How the text should be aligned horizontally.

This must not be null.

Implementation

TextAlign get textAlign => _textPainter.textAlign;
void textAlign= (TextAlign value)

Implementation

set textAlign(TextAlign value) {
  assert(value != null);
  if (_textPainter.textAlign == value)
    return;
  _textPainter.textAlign = value;
  markNeedsPaint();
}